Page 1 of 1

Problems with CPrinter wrapper class in VC++ 6

Posted: Thu Jan 06, 2005 10:25 am
by 9523803
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

Posted: Fri Jan 07, 2005 9:11 am
by Pep
Hi Michael,

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