Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine programmatically if a dll is registered
Message
De
19/03/2004 18:37:23
 
 
À
18/03/2004 11:35:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00887511
Message ID:
00888118
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform