ActiveX component cannot be created for COM component in release mode (VS2010 specific)
问题 I have an ATL COM component(.exe) (VC++ ) in VS2008. Through VB6 client, i use CreateObject and get the object. But once the component is updated to VS2010 SP1, the VB6 client no longer is able to create the COM object. If I compile the VS2010 COM component in debug mode and get the .exe, VB6 client is working fine. In release mode, .exe is generated without any errors, and VB6 client fails saying ActiveX component cannot be created. Please help me in resloving this. 回答1: Finding out why COM