Hi,
I have written an ActiveX control using MFC and I am having some trouble deploying it on an Industrial PC running Windows XP Embedded. When I run regsvr32 I get the error message "LoadLibrary("Control.ocx") failed. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem". I tried to open the OCX with Dependency Walker and found that two DLL files were missing, mfc90u.dll and msvcr90.dll. Putting those in C:\Windows\system32 made Dependency Walker happy, but I still get the same error message when trying to register the control. I have developed this using VS2008. This is my first time touching both MFC and COM so maybe I have made some beginners mistake. The control works fine on my development computer (not running it in an ActiveX container but actually in the software it is to be used).
I have monitored the activity happening when trying to register it with both FileMon and RegMon, but for my untrained eye, I can't really spot what's going wrong. Let me know if you want dumps of this.
Regards,
Eirik