Cannot Create Simple 32-Bit COM Component on 64-Bit Windows
Posted on 2014-04-09
Hi. I have an ATL/MFC COM simple object written in Visual C++ 6.0. This COM object has a single method, Test(), that simply calls the MFC MessageBox() method to display a "hello world" message.
I am trying to use this COM object on 64-bit Windows 7. I put the file for this COM object, TestLibrary.dll, into the SysWOW64 folder and ran as an administrator the command "regsvr32 C:\Windows\SysWOW64\TestLibrary.dll", which resulted in the following message: "DllRegisterServer in C:\Windows\SysWOW64\TestLibrary.dll succeeded." When I try to create the COM object, for example in Microsoft Excel, however, I get the following error message: "Run-time error '429': ActiveX component can't create object." Do you have any ideas as to why I cannot create the COM object on 64-bit Windows? It works flawlessly on 32-bit Windows.