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?
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.
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.
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.