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.