Click to See Complete Forum and Search --> : FindExecutable for dll's


bferguson2
May 14th, 1999, 08:31 PM
Is there a win32 or other function that allows me to specify a dll and have it
find the first matching one in the path. Kinda a FindExecutable function for
dlls instead of .exes. I found several versions of "which.exe" on the network
that does this, but none of them has source.

Thanks,
--Bruce, II

Rob Wainwright
May 15th, 1999, 03:11 AM
Have a look at the SearchPath API within the Win32 SDK. This should do what you want

jnf
June 1st, 1999, 04:18 AM
use GetModuleFileName();