I have a c++ class which needs to interact with a .NET dll using COM interop.
I have:
1. A method called from the C++ which operating object is the .net instance:
m_pCommManager.CreateInstance(__uuidof(CHmHTTPManager));
m_pCommManager->Communicate(/*string parameter*/);
2. A .net interface with the following method, which the C++ class should comply to:
void ResponseRecieved(/*string parameter*/)
My question is: What is the parameter type I should select that is:
A. Easy for manipulation as a string on both sides (even through casting).
B. Acceptable by both environments (I cannot use "string" for C++ and .net as it's not the same)
Concrete usage examples are more than welcome.