Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registering ocx controls manually
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181728
Message ID:
00181749
Views:
8
>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?

There is an example of how to do this in the KB here.

Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform