Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registering Controls from inside VFP
Message
From
30/03/2001 15:28:50
 
 
To
30/03/2001 15:07:25
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00490297
Message ID:
00490439
Views:
9
Here is a small correction, just to be consistent with REGSVR32 syntax.
Use /s command line option before DLL or OCX name.
But, anyway there is no big difference, a sample works even if you placed it after DLL name.

Alex

>To register DLL or OCX invisible for user you may use the following way:
>

>oShell = CreateObject( "WScript.Shell")
>nResult = oShell.Run( "regsvr32 YourDLLOrOCXFile /s", 0, .T.)
>

>nResult will contain 0 if DLL or OCX successfully registered.
>
>With best regards,
>Alex
>
>>Is there a way inside VFP (preferably without the RUN command) to determine if a control (DLL or OCX) has been registered, and if not register it?
>>
>>Bryan A. Jackson
>>FOCUS CMC
Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform