Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registring OCX on NT WS
Message
 
À
06/01/2000 13:15:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00314015
Message ID:
00314064
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform