Quote:I tried this and compile my both project in 32 bit but still got the same exception. Also when i compile both the project on 64 bit platform still got the same exception. Also I have register my c++ dll using regsrv32 and its entry is added in registry under 64 bit. I have created separate ATL project in C++ and tried to create the instance of a coclass in c#. This work for me in both 32 bit and 64 bit. For the ATL project I did not run any command to register dll I think visual studio did that for me. But for my existing non ATL project I am not able to instantiate c++ com class in c#.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)