An error occurred while registering the ActiveX Space developed with VC ++. The following message is displayed when you register the space with regsvr32 testocx. ocx:
Loadlibrary ("testocx. ocx") failed-the specified module cocould not be found
View testocx. ocx with depends and find some files missing
When I copy the corresponding files from the development machine to the test machine and depends again, I find that other files are missing.
Copying files in this way is not a solution because the client environment is very different.
Finally, we thought we could do static compilation.
Select project-> setting. In the displayed dialog box, change use MFC in a share DLL to use MFC in a static library.
The test is successful.
The above is only the case I encountered. Other problems may cause registration failure. You need to analyze and find a solution.