I have two projects, A and B
Project A is compiled with:
1. Standard Windows Libraries
2. Multi-byte character set
3. NO common language support
Project B is compiled with:
1. MFC as a dynamic dll
2. Multi-byte character set
3. WITH using common language support
The following function is defined in project A:
LPCTSTR CAppProxy::DriverName(IDriverAgent *driver)
{
BSTR bstr;
HRESULT hr = driver->get_Name(&bstr);
CString str = CString(bstr);
return(str);
}
and is called from project B using:
CString name = appProxy->DriverName(driver);
but when driver name is called, the contents of "name" are garbage