Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine programmatically if a dll is registered
Message
From
19/03/2004 18:37:23
 
 
To
18/03/2004 11:35:31
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00887511
Message ID:
00888118
Views:
15
Thanks, Roberto.

Alex

>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
Reply
Map
View

Click here to load this message in the networking platform