Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cannot include <gdiplus.h>

Cannot include <gdiplus.h>

Scheduled Pinned Locked Moved C / C++ / MFC
c++winformsgraphicssysadminwindows-admin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jantimmerman
    wrote on last edited by
    #1

    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 type error 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

    C 1 Reply Last reply
    0
    • J jantimmerman

      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 type error 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

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      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.

      J 1 Reply Last reply
      0
      • C Cedric Moonen

        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.

        J Offline
        J Offline
        jantimmerman
        wrote on last edited by
        #3

        Ok, it builds. Only thing that remains is the warning. Thanks for the help!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups