Please explain this linking error?

  • Thread starter Thread starter tomb
  • Start date Start date
T

tomb

I haven't worked with Visual C++ before, so I'm in a little over my head
on a project I'm doing.

I'm using VC++ 2003 unmanaged code, and I am getting this linking error
that I don't understand:

PatsInf error LNK2001: unresolved external symbol "protected: virtual
struct AFX_MSGMAP const * __thiscall
CPatsInfApp::GetMessageMap(void)const "
(?GetMessageMap@CPatsInfApp@@MBEPBUAFX_MSGMAP@@XZ)


PatsInf is my class file. When I double click the error message, it
doesn't take me to the offending code, and I don't understand what this
is telling me, so I don't even know where to look. Please help!

T
 
Because it is a link error shows something is missing, you don't have the
line number.

A quick search of GetMessageMap shows MFC Library Reference TN006: Message
Maps , which describes the correct way of declaring and implementing message
maps. Make your you don't miss any step.
 
Back
Top