Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Effortless install of ActiveX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00552482
Message ID:
00552681
Vues:
21
You can also register an OCX with the following code.
PROCEDURE RegisterFile
LPARAMETERS lcFileName

*** Get Windows System 32 directory
DECLARE INTEGER GetSystemDirectory IN KERNEL32 STRING @, INTEGER
lcWinDir = SPACE(254)
lnWinDirLen = 254
lnWinDirLen = GetSystemDirectory(@lcWinDir, lnWinDirLen)
lcWindowsSysDir = LEFT(lcWinDir, lnWinDirLen) + "\"

lcRegFile = lcWindowsSysDir + lcFileName
DECLARE INTEGER DllRegisterServer IN (lcRegFile)

llsuccess = (DllRegisterServer() = 0)
IF llsuccess 
    DO LogEvent WITH "Registered: " + lcRegFile
ELSE
    DO LogEvent WITH "Could NOT Register: " + lcRegFile
ENDIF
RETURN llsuccess
Dennis Lindeman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform