p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Ivor Horton's Beginning Visual C++ 2005 (http://p2p.wrox.com/forumdisplay.php?f=249)
-   -   Linker Error, Chapter 18 (http://p2p.wrox.com/showthread.php?t=64916)

Spasticus January 1st, 2008 04:35 AM

Linker Error, Chapter 18
I'm trying to build the Sketcher application with a dll, as set out in Chapter 18 up to page 915. I get a linker error when I try to build it. Does anyone know where to look for the error? The error listing is below.

SketcherView.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CText::CText(class CPoint,class CPoint,class ATL::CStringT > >,unsigned long)" (__imp_??0CText@@QAE@VCPoint@@0V?$CStringT@DV?$Str TraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@K@Z) referenced in function "public: void __thiscall CSketcherView::OnLButtonDown(unsigned int,class CPoint)" (?OnLButtonDown@CSketcherView@@QAEXIVCPoint@@@Z)
C:\Documents and Settings\Danny Crossley\My Documents\Visual Studio 2005\Projects\Ivor\Practice\Sketcher\Debug\Sketche r.exe : fatal error LNK1120: 1 unresolved externals

Dan Crossley

Spasticus January 1st, 2008 06:38 AM

Does anyone have the solution to the Chapter 18 DLL version of Sketcher. Mine just won't build and I can't figure out why. I've even replaced my code with his but I get even more errors then.

Dan Crossley

shingabiss January 6th, 2008 12:36 AM

I am having the same *"!@@*$##!* problem and getting frustrated! I see that this has been a thread for a long time on Google and I can't find any resolutions. Maybe Mr. Horton could shed some light on this? It's a very well written book (Vc++ 6.0) but this has stopped my progress.

Scott (shingabiss)

NadAf February 19th, 2008 07:02 PM

If you can send me the project in .zip I will try to help you solve this issue.
e-mail: Nad__Af@hotmail.com


Spasticus February 20th, 2008 05:04 AM

This is a Unicode problem. It has already been answered. Thanks to dan6.
See http://p2p.wrox.com/topic.asp?TOPIC_ID=55090

Dan Crossley

All times are GMT -4. The time now is 01:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.