Results 1 to 6 of 6

Thread: dll browser?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    23
    I was wondering if there was such a program that will
    show you all the available calls or procedures
    in a DLL file and the variables they expect to
    be passed. For instance I could call routines
    through dlls instead of using OCX controls to
    eliminate the mixxing OCX error messages...

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    You can find out the names of the functions within a dll using Quick View, but you need to find out from the dll's creator(s) what arguments each function expects. There's no magic way to determine it as far as I am aware.
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Harry

    Surely there should be a way though. As each of the calls are programmed with a standard interface and putting anything but the required parameters causes an error I would have thought there has to be "something" that could do this.

    I have tried for years to "discover" the contents of the RNAUI.DLL in Windows95/98 to be able to create (not just execute) a Dial-up Networking Connectoid with no luck!!



  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    I have some software (VB) that came with an API book that shows all the imports and exports of a DLL. I haven't got the code here at work but I have posted it here before about a month or two ago.

    Take a read through this http://forums.vb-world.net/showthrea...threadid=21258

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  5. #5
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226
    Maybe this might help !

    Source: Element K Journals.


    Uncover internal DLL functions with Dependency Walker

    While the Windows API functions are fairly well documented, you
    may come across other DLL files that remain a mystery. For
    example, suppose you want to incorporate the MIDAS digital audio
    player into your application. The help files that come with this
    free DLL list all the important external function names. However,
    because the DLL doesn't support Visual Basic, you must hook into
    the DLL with API declarations. The internal names supported in
    this library aren't in the help files.

    To unravel this mystery, you can use the Dependency Walker, a
    handy utility that comes with Visual Studio (appears as Depends
    on the Windows program menu). Simply point the utility to the
    DLL in question, and it will list all the internal file names
    that you'll need to refer to in your API declarations. For
    example, in the MIDAS DLL, you use a function called
    MIDASplayModule to play a sound module. However, the internal
    name for the function is _MIDASplayModule@8. As a result, you
    must declare the function in Visual Basic like so
    Code:
    Declare Function MIDASplayModule Lib "midas11.dll" Alias _
         "_MIDASplayModule@8" (ByVal module As Long, ByVal loopSong _
         As Boolean) As Long
    Using the Dependency Walker on MIDAS, you could quickly and
    easily determine the library's internal function names.

  6. #6
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Function names aren't a problem... we can get that in an instant with QuickView.

    Its the parameters, how many there are, what type they are, if they are ByVal or not, and how they are defined in order to MAKE the call that is the problem.

    Dependancy Walker gives you the :

    "_MIDASplayModule@8"

    But it doesn't give you the :

    (ByVal module As Long, ByVal loopSong As Boolean) As Long



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