Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Effortless install of ActiveX
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00552482
Message ID:
00552681
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform