Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ole error code 0x80040154 class not registered 1

Status
Not open for further replies.

teering

Programmer
Joined
Nov 4, 2002
Messages
30
Location
US
i am using the activex calendar/datetime picker ole control

i have an application in vp7 that runs fine on most machines
however the windows 2000 and xp machines generate the above
error message

i know how to register the ocx files, however my question is
this -- the vfp7 manual says that you can use the command
set oleobject off and this will not generate the message and
the calendar control will still work

before i use the set oleobject off, does anyone know if
this is correct


Teresa Pickering
Professional Computer Services
 
teering

Can I assume you tried to register the OCX on the target machine?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
i have not tried to register the ocx on the machines
i was assuming that would work if need be



Teresa Pickering
Professional Computer Services
 
Teresa,

before i use the set oleobject off, does anyone know if
this is correct


No. This is a blind alley.

SET OLEOBJECT OFF prevents VFP looking for an ActiveX control when you execute CREATEOBJECT(). The goal is to improve performance. If you know that the class you want to instantiate is not an ActiveX control, there is no point in VFP wasting time looking for it. If you know that the class is an ActiveX, you definitely don't want to set Oleobject off, or it will never be instantiated.

You will need to look for some other reason that the control is not properly registered.

Mike


Mike Lewis
Edinburgh, Scotland
 
teering

i have not tried to register the ocx on the machines
i was assuming that would work if need be


Then I would suggest you first try to register the OCX (To tell VFP or any other application "where the OCX can be found on the user's computer), using Regsvr32 "c:\myapp\myocx.ocx" (Full path required) in a DOS window or in the Start->Run box.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top