Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

CRect::CRect already defined...


CRect::CRect already defined...

Postby Roq » Jun 13, 2005 @ 9:36am

I get this problem only when compiling debug code on VS2003.

Code: Select all

error LNK2005: "public: __thiscall CRect::CRect(struct tagRECT const &)" (??0CRect@@QAE@ABUtagRECT@@@Z) already defined in gapidraw.lib(GapiSurface.obj)
1 lines; 1 keywds; 1 nums; 9 ops; 1 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  


I'm using MFC in the same project that also has a CRect class, but why does this error only occur in debug mode with VS2003? It doesn't occur in release mode and not at all with Visual Studio 6.

/Tommy
Roq
 


Postby Roq » Jun 13, 2005 @ 9:47am

I also get this error with the MFC sample after converting the project to Visual Studio 2003.

Release compiles and links, but not Debug.

/Tommy
Roq
 


Postby Roq » Jun 13, 2005 @ 1:53pm

The MFC-sample seems to work fine with VS 2003 if I use the specific Visual Studio 2003 Debug lib/dll.

But in my own project I'm using Unicode and the VS 2003 debug lib/dll does not seem to support Unicode.

Is there something I can do, or do I have to wait until a Unicode debug dll is released for VS 2003?

/Tommy
Roq
 


Postby ppcStudios » Sep 12, 2005 @ 10:33pm

westernmost wrote:Check Proxy Professional (Socks)... blah blah blah


These idiots are almost as bad as the viagra spammers. I delete their crap posts from our site on a nearly daily basis.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » Sep 20, 2005 @ 8:02am

GR: Thanks, I removed the post.

The rest of you who have issues with using MFC and GapiDraw. Don't use the file GapiDrawExtension.h - that's where CRect is defined. Or just comment out the definition of CRect and CPoint from GapiDrawExtension.h. That way it will work for you. :-)
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[http://www.gapidraw.com]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum