Results 1 to 9 of 9

Thread: Dependency through Api

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Dependency through Api

    Can I know th list of dependency files through any api call?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I don't know off-hand if there is an easy way of doing it, but you could always just use the Depends utility that comes with Visual Studio
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I know you can use the Depends utility, but I need to know it through my code. There must be a way through VB because P&D Wizard does it.

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    The P&D wizard does it by looking at the source code
    The list of required ocx's etc. (if any) are at the top of your .vbp file
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Okay, so it chooses the easy way out. But then Installshield and others do have a way to know the dependencies. BTW, have you ever used the Dumpbin utility. It also provides you with a waay to know the dependencies.

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well you would look at the compiled exe and see what dlls its referencing. But I've no idea how to do that
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Just got a link at PSC. i will look at it and respond later http://www.planetsourcecode.com/vb/s...31828&lngWId=1

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    As far as I can tell it just runs through the file and looks for references written in
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Yes, more or less it does the same. Returned tonly MSVBVM60.dll for an exe created with VB6.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width