Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help ! error LNK2001: unresolved external symbol

Status
Not open for further replies.

192837

Programmer
Apr 20, 2006
2
0
0
US
I didn't put any of my code just generating a default project in Visual C++ 6.0.
New Project -> MFC APPWizard(exe) -> all default choice -> Only change one thing : change the MDIView class inherited from CView to inherited from CFormView.
Then, when I compile this project no matter in debug or release version, I got the link error as:

MDITESTView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CFormView::OnDraw(void)" (?OnDraw@CFormView@@UAEXXZ)
Release/MDITEST.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Any idea ?

Thanks so much for you help !
 
Does CFormView inherit from CView?

You may have a precompiled header problem if it does: do a clean build and relink.
 
Yes. The CFormView is a MFC class, which inherites from CView.

I clean the project and rebuilt it, However, it still doesn't work :(

-Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top