How can I detect IF the OLE server is registered (before my code trigger the error)?
Sheena, you can write VFP code to register the OLE server from with it your VFP application (without 'run regsvr32 myocx.ocx'). It was posted in the VFUG April
98 Newsletter (
http://www.vfug.org) "Registration Sever by Randy Patterson"
----------------------------------------------
>Make sure regsrvr32.exe is in \WINDOWS\SYSTEM. It comes with VFP. Also, make sure the OCX is in \WINDOWS\SYSTEM. Then from a DOS window or the Run window type REGSVR32 MYOCX.OCX. You'll get a message telling you whether it was successful. Only OCXs that contain registration info will work (most do).
>
>>I'm having trouble with my application in some offices
>>that gives me an error
>>
>>"ole error code ox80040154 class not registered.
>>it works fine on some machines but not others.
>>
>>
>>How can I register this manually?
Hector Correa