Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine programmatically if a dll is registered
Message
From
18/03/2004 11:35:31
 
 
To
18/03/2004 10:35:49
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00887511
Message ID:
00887550
Views:
16
If DLL is WIN32, not COM DLL, you try on with this...

*|--
Declare Long LoadLibrary in "kernel32" String lpLibFileName
Declare Long GetProcAddress in "kernel32" LONG hModule, String lpProcName
Declare Long FreeLibrary in "kernel32" Long hLibModule

a = LoadLibrary( "C:\MyDll.dll" )
if( a != NULL )
*|-- DLL Exist
b = GetProcAddress( a, "MyDllProcName" )
if( b == NULL )
*|-- Function don't exist in dll.
else
*|-- Function EXIST in dll.
endif
endif

FreeLibrary(a)

*|--

Good Luck.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform