Problems with CPrinter wrapper class in VC++ 6

TeeChart for ActiveX, COM and ASP
Post Reply
naiditsch
Newbie
Newbie
Posts: 7
Joined: Wed Sep 01, 2004 4:00 am
Location: Germany

Problems with CPrinter wrapper class in VC++ 6

Post by naiditsch » Thu Jan 06, 2005 10:25 am

I have a VC6 program, in StdAfx.h I have included:

#include "gdiplus.h"
using namespace Gdiplus:

When I now compile my program, that uses your TeeChart wrapper classes, with VC 6 compiler and link with the TeeChart.lib I always get a LNK2001 error with the symbol "GetPrinter()".

The cause is, that GetPrinter() is also a function in GDIPlus with the same name, so there is a double name conflict with the function GetPrinter(), that already exists in the GDIPlus classes.

I only can solve it, if I rename in TChart.h the GetPrinter() function to another name, for example to "GetPrinterDevice()" or something else, to avoid naming conflicts with same functions in GDIPlus.

Afterwards the LNK2001 error disappears.

Maybe can you change the function name of "GetPrinter()" to something else in the wrapper classes for your ActiveX control in one of the next releases ??

Thx a lot,
Michael Kuelshammer
Germany

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jan 07, 2005 9:11 am

Hi Michael,

many thanks for the advise, I've writed down our defect/wish list so it can be considered for further releases.

Post Reply