G
Guest
All,
I have a MFC Mixed mode dll which is working well. I am now tring to use a
regular C++ class from another DLL which has a method called GetMessage.
When I link I get 2 error messages:
MyClass.obj : error LNK2028: unresolved token (0A00074C) "public: class
CMessage * __thiscall CTransmitMessage::GetMessage(int)"
(?GetMessage@CTransmitMessage@DSS@@$$FQAEPAVCMessage@2@H@Z) referenced in
function "private: void __thiscall CMyClass:rocessStateResponse(class
CStateResponse const &)"
(?ProcessStateResponse@CMyClass@DSS@@$$FAAEXABVCStateResponse@2@@Z)
MyClass.obj : error LNK2019: unresolved external symbol "public: class
CMessage * __thiscall CTransmitMessage::GetMessage(int)"
(?GetMessage@CTransmitMessage@DSS@@$$FQAEPAVCMessage@2@H@Z) referenced in
function "private: void __thiscall CMyClass:rocessStateResponse(class
CSaveStateResponse const &)"
(?ProcessStateResponse@CMyClass@DSS@@$$FAAEXABVCStateResponse@2@@Z)
CMyClass:rocessResponse( stateMsg )
....
CMessage* pMessage = stateMsg.GetMessage( i );
....
This class and function have been used for years, but I get this specicific
link error when I use it from any MFC Mixed mode dll. If I rename the
function something other than GetMessage, I do not get the linking errors.
This leads me to think there is some conflict on the GetMessage name with
the .Net Framework but I do not know how to resolve this. Any ideas?
Thanks!
Craig Klementowski
I have a MFC Mixed mode dll which is working well. I am now tring to use a
regular C++ class from another DLL which has a method called GetMessage.
When I link I get 2 error messages:
MyClass.obj : error LNK2028: unresolved token (0A00074C) "public: class
CMessage * __thiscall CTransmitMessage::GetMessage(int)"
(?GetMessage@CTransmitMessage@DSS@@$$FQAEPAVCMessage@2@H@Z) referenced in
function "private: void __thiscall CMyClass:rocessStateResponse(class
CStateResponse const &)"
(?ProcessStateResponse@CMyClass@DSS@@$$FAAEXABVCStateResponse@2@@Z)
MyClass.obj : error LNK2019: unresolved external symbol "public: class
CMessage * __thiscall CTransmitMessage::GetMessage(int)"
(?GetMessage@CTransmitMessage@DSS@@$$FQAEPAVCMessage@2@H@Z) referenced in
function "private: void __thiscall CMyClass:rocessStateResponse(class
CSaveStateResponse const &)"
(?ProcessStateResponse@CMyClass@DSS@@$$FAAEXABVCStateResponse@2@@Z)
CMyClass:rocessResponse( stateMsg )
....
CMessage* pMessage = stateMsg.GetMessage( i );
....
This class and function have been used for years, but I get this specicific
link error when I use it from any MFC Mixed mode dll. If I rename the
function something other than GetMessage, I do not get the linking errors.
This leads me to think there is some conflict on the GetMessage name with
the .Net Framework but I do not know how to resolve this. Any ideas?
Thanks!
Craig Klementowski