Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registring OCX on NT WS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00314015
Message ID:
00314160
Vues:
29
>>Hi, my dear friends!
>>
>>I have a quick question, how I do to register a OCX (Comctl32.ocx) on a Windows NT workstaion.
>>
>>Thanks
>
>Thanks to Paul for most of this:
>
>LOCAL gcFile, llSuccess
>
>gcFile = GETFILE('OCX', 'OCX File:', 'Select',0)
>IF EMPTY(gcFile)
> RETURN
>ENDIF
>
>DECLARE INTEGER DllRegisterServer ;
> IN (gcFile) ;
> AS __DllRegisterServer__
>*-- This function returns 0 if successful
>IF __DllRegisterServer__() = 0
> llSuccess = .T.
>ELSE
> llSuccess = .F.
>ENDIF
>
>IF llSuccess
> MESSAGEBOX("OCX was registered successfully", 0+64, _screen.caption)
>ELSE
> MESSAGEBOX("OCX registration failed", 0+48, _screen.caption)
>ENDIF

I believe you could also type regsvr32 comctl32.ocx in the "Run" dialog box from the "Start" menu. Unless, of course you're looking to do this programmatically.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform