Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 1st, 2008, 04:35 AM
Authorized User
 
Join Date: Oct 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Linking...
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
__________________
Dan Crossley
 
Old January 1st, 2008, 06:38 AM
Authorized User
 
Join Date: Oct 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old January 6th, 2008, 12:36 AM
Registered User
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)

 
Old February 19th, 2008, 07:02 PM
Registered User
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you can send me the project in .zip I will try to help you solve this issue.
e-mail: [email protected]

Nad
 
Old February 20th, 2008, 05:04 AM
Authorized User
 
Join Date: Oct 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker Error when buidling Sketcher - Chapter 14 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 6 January 11th, 2008 03:52 AM
Linker error.help s_srivi1 Access VBA 4 November 12th, 2007 02:54 AM
Compiler linker error raja_welcomes Visual C++ 1 June 6th, 2007 11:17 AM
linker error smukher Visual C++ 2 July 2nd, 2003 06:10 PM





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