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!

Class not registered 4

Status
Not open for further replies.

jimstarr

Programmer
Feb 6, 2001
975
US
An existing app of mine (VFP9) uses FoxPro's _olecalendar control. It's been working fine, except now under Windows 7 the user gets a "Class not registered" error. What to do?

Thanks!


Jim
 
You perhaps need to modify your setup to not only copy the OCX into the program folder or system32, but also register it. Installshield (express) does recognize COM or ActiveX classes within the setup files, at least offers to autodetect these and register them at setup time. Inno does not do that automatic.

It seems you are using the API function DllRegisterServer in your application to register the OCX, which is not the way to go since way back, although it still worked up to XP.

In Inno you specify to register an OCX this way:

[Files]
Source: "ComCtl32.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver

The regserver flag does make inno register the file. And as said you need the ocx file and the helper dll COMCTL32.DLL, but only the OCX file is registerd, not the DLL.

Bye, Olaf.
 
The solution we're trying is to have the setup launch the app as a post-setup executable. I'll report back when I hear results.

Jim
 
Having the setup launch the app as a post-setup executable does the job. I'm sure Olaf's solution is cleaner, but I'm not going to mess with this anymore. Thanks to everyone who responded!

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top