Problems with CPrinter wrapper class in VC++ 6
Posted: 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
#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