I want to create a dll which has a managed C++ interface, but the actual code working underneath is native C++.
Currently we are using COM (STA) to interface with the managed code, but now we want to call the module with ThreadPool, which will not allow STA threads. We would like to avoid recoding the module for MTA COM.
I've asked this question before as well as others, and it seems the responses do not address the basic question: how to set up the project. I am using VS2010, and would like the steps laid out. I've tried starting with a managed library (C++ Class Library) and adding unmanaged classes, as well as MFC DLL (we utilize some MFC classes, but would like to work them out eventually) and adding managed classes. I can never seem to get it to compile.
Can someone please humor my ignorance and explicitly lay out the steps starting with the project type?