Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use an unregistered OCX on the fly?
Message
 
 
To
19/03/2007 11:58:09
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01205530
Message ID:
01205597
Views:
15
I will try that. Thanks very much!

>>I would like to use an OCX with a VFP EXE in an "on the fly" manner, without having to register the OCX. Basically, if the OCX file is where the EXE expects it to be, it will use it,and if not, it will do without. Is there a way to use a form.addobject construct with the OCX, possibly within the form's init? Other suggestions? Thanks very much.
>
>You can test to see if you can instantiate the control using CREATEOBJECT() first within a TRY CATCH construct. If that fails you can then try and register it on the fly using:
>
>
>* Code snippet from Borislav Borissov
>DECLARE INTEGER DllRegisterServer IN (full path to ocx here)
>DllRegisterServer()
>
>
>Another option is to include the OCX within your exe file inside a MoleBox or Thinstall wrapper. Then the OCX does not need to be registered at all.
Previous
Reply
Map
View

Click here to load this message in the networking platform