I am running into an issue here where I am trying to register an OCX dynamically in an C++ MFC application in Windows Server 2008. The problem is that the OCX doesn't seem to be recognized at all, and the application just never opens.
I have also tried to register the OCX manually with the following command:
and it gives me the following error:
The module "Path\my.ocx" was loaded but the call to DllRegisterServer failed with error code 0x80040200.
I have read around and found out that the problem seems to be because I have not run regsvr32 with admin rights. Is that correct?
The problem is that we are trying to update the current OCX of an old application.
My question is:
What would be the best way to register an OCX under Windows Server 2008/Vista/7 without having to worry about admin rights? I cannot use an InstallShield to update the existing applications that are already deployed.