Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registering DLL's
Message
De
03/08/1998 18:26:33
 
 
À
03/08/1998 10:51:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00123523
Message ID:
00123657
Vues:
15
>>>Is there a way to programatically register DLL's through VFP.
>>
>>You must register each function you wish to use (See DECLARE - DLL in help). If, however, an FLL is created rather than a DLL, SET LIBRARY TO... registers each function in the FLL.
>
>I want to register the DLL's in the Windows Registry but don't want to have to use REGSVR32 to do this.

Good luck. There's an API available to do this, but it's quite ugly and complex. I'd recommend using REGSVR32, which can be fired silently in the background quite easily:

(1) Locate REGSVR32.EXE; if it's somewhere in your WIndows path, you can reference it as REGSVR32, otherwise, save the full path.

(2) Change directories to the location that holds the .DLL using the VFP CD/SET DEFAULT TO command. This is desirable so that if the self-registration code relies on the registration taking place in the home directory the paths will be properly recorded.

(3) Execute the following command:

RUN /N REGSVR32 /S

VFP does not wait for REGSVR32 to complete execution before continuing, and REGSVR32 will not display a messagebox unless the registration fails.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform