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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE error when running app in Win XP

Status
Not open for further replies.

psparrow

Programmer
Jul 21, 2000
15
US
I created an application in VFP 6 (on my Win 2000 desktop) and it runs great on all the workstations except those couple who are running Windows XP.

The error message is: "OLE error code: Ox80040154: class not registered.......".

I read some past threads with this problem and I tried the following: the "Activex" check box in the setup wizard step 2 is checked. I added mscomct2.ocx to my setup files and in step 6 the target directory for the ocx file is WinSysDir and the activex check box is checked here also. I am still getting the same error. You can go past the error and the application works fine but I need the error messages to go away.

Anyone else with this problem?
 
I forgot - I even tried manually registering the OCX with no results!
 
Are you sure that "mscomct2" is the OCX it is having the problem with? If your app works fine, then what is missing? Can you figure out which line of code the error happens on?

Ian
 
According to MS knowledge base article #Q297381:

"Microsoft Windows Common Controls-2 6.0 (MSCOMCT2.OCX) is no longer included with Microsoft Office XP Developer.



RESOLUTION
You can download Microsoft Windows Common Controls-2 6.0 from the following Microsoft Web site:




MORE INFORMATION
Microsoft Windows Common Controls-2 6.0 includes the following ActiveX controls:

Microsoft Animation Control


Microsoft UpDown Control


Microsoft MonthView Control


Microsoft Date and Time Picker Control


Microsoft Flat ScrollBar Control"
 
Salut!

I had this problem a long time ago. If you have Visual studio 6.0 with Visual Basic, you can do the same thing as me.

a - In VB, create a new project, and add all the elements (activeX) that you use in Fox (Microsoft Windows Common Controls-2 6.0 (MSCOMCT2.OCX) in a VB form.

b - Compile the project in EXE

c - Create an installation CAB (Package & Deployment Wizard)
and install it on your XP station. It will register all the controls for you and your FOX app should run fine.

Good luck

Nro
 
Nro- I just tried your suggestion - No luck! The only activex control I use is Monthview. I created a VB project and added this control. I add Monthview to a form and compiled the project. I used the package and deploy wizard to create the setup files and installed on the xp machine. Same error messages.

I did notice that three ocx files are distributed with the VB project: mscomctl, mscomct2 and comct332. I'll try adding comct332 to my VFP project and try that. I am getting awfully frustrated!
 
Just as a test, try deleting the calendar control from your form and see if the error goes away.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top