Cannot include <gdiplus.h>
-
Hello, I am new to Visual C++ (not to C++ though) and I am trying to draw a curve with GDI+. Since I kept getting the same linker errors, I made a new project in which I only included <windows.h> and <gdiplus.h>. The result: first this warning: (all linker errors)
warning LNK4248: unresolved typeref token (0100001A)for 'Gdiplus.GpCachedBitmap'; image may not run
And then several errors of this typeerror LNK2028: unresolved token (0A000049) "extern "C" enum Gdiplus::Status __stdcall GdipCloneImage(class Gdiplus::GpImage *,class Gdiplus::GpImage * *)" (??1PrivateFontCollection@Gdiplus@@$$FUAM@XZ)
I have installed Visual C++ 2005 Express and the Windows Server 2003 SDK and added the path to the VC++ Directories. Running on XP with SP2 Thanks in advance. Best regards, Jan Timmerman -- modified at 3:09 Thursday 9th February, 2006 -
Hello, I am new to Visual C++ (not to C++ though) and I am trying to draw a curve with GDI+. Since I kept getting the same linker errors, I made a new project in which I only included <windows.h> and <gdiplus.h>. The result: first this warning: (all linker errors)
warning LNK4248: unresolved typeref token (0100001A)for 'Gdiplus.GpCachedBitmap'; image may not run
And then several errors of this typeerror LNK2028: unresolved token (0A000049) "extern "C" enum Gdiplus::Status __stdcall GdipCloneImage(class Gdiplus::GpImage *,class Gdiplus::GpImage * *)" (??1PrivateFontCollection@Gdiplus@@$$FUAM@XZ)
I have installed Visual C++ 2005 Express and the Windows Server 2003 SDK and added the path to the VC++ Directories. Running on XP with SP2 Thanks in advance. Best regards, Jan Timmerman -- modified at 3:09 Thursday 9th February, 2006You probably forgot to link to the GDI+ library. I don't which one it is, I suppose it is something like Gdiplus.lib (you have to check that). Then, in the property of your project, in the linker tab, you need to add this library into the input libraries.
-
You probably forgot to link to the GDI+ library. I don't which one it is, I suppose it is something like Gdiplus.lib (you have to check that). Then, in the property of your project, in the linker tab, you need to add this library into the input libraries.
Ok, it builds. Only thing that remains is the warning. Thanks for the help!