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

Fox Pro Program loading issue

Status
Not open for further replies.

al929

IS-IT--Management
Feb 13, 2002
63
US
When trying to load a foxpro program I am receiving the following errors.
The title screen comes on OK then
a fatal error that says

"OLE error code 0X80040154:Class not registered
(1426)(80040154:Class not registered)
instantiate, 84
O:\vp8\tool2\bi.exe <this is the root and the program name>
Then a message that says
&quot;This menu can only be called from a Top-Level form. Ensure that your form's ShowWindow is set to 2. Read the header section of the menu's MPR file for more details.

I am pretty stuck at this thime.
Help with regard matter will be appreciated!
Alan

 
maybe class file is corrupt?

have you tried to rebuild all files?
 
The program is working properly on all other machines. This is a new computer and a new installation.
 
Alan,

My guess is that these are two unrelated errors.

Are you using any ActiveX controls? If you are instantiating such a control, and that control is not properly registered, you will see the first of the messages.

To verify that, try removing any ActiveX controls and see if the message goes away. Or, when the message comes up, suspend the program and check in the debugger to see which line is causing it.

The second error might be because you are calling a menu in a top-level form, but you haven't passed the correct parameter to the MPR program. Typically, if you are launching the menu from within the top-level form, you pass THIS as the parameter.

Let me know if this helps.

Mike

Mike Lewis
Edinburgh, Scotland
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top