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 soDeclare 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.
Reveal internal DLL functions
By ElementK Journals, published on 14 Jul 2001
| Filed in
You might also like...
Visual Studio forum discussion
-
CorelDRAW VBA: cdrTraceLineDrawing FAILS, producing single linear path instead of Centerline trace?
by dancemanj (0 replies)
-
client/server application using activex
by beautifulheart (0 replies)
-
System Error &H8007007E. The specifed module could not be found.
by swiftsafe (5 replies)
-
Invitation to take part in an academic research study
by researchlab (0 replies)
-
Send SMS with SMPP
by mmahmoud (0 replies)
Visual Studio podcasts
-
Stack Overflow Podcast: Podcast #45 – Keeping it Sharp
Published 7 years ago, running time 0h54m
Our guest this week is Eric Lippert – language architect extraordinaire and famous for all his work at Microsoft in developing their languages Eric joined Microsoft right out of college and was originally working on VB It’s time for everyone’s favorite game: Name the Worst Feature of that Microso.
Comments