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. How to get start withe GDI+ under Windows XP / Visual C++ 5.0?

How to get start withe GDI+ under Windows XP / Visual C++ 5.0?

Scheduled Pinned Locked Moved C / C++ / MFC
c++winformscomgraphicsjson
3 Posts 1 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.
  • S Offline
    S Offline
    Shuang Wu
    wrote on last edited by
    #1

    i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added #include "basetsd.h" #include "gdiplus.h" in stdafx.h after all includes and before #endif and built the project. 6 errors were reported: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059: (I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)


    |-|3llo Wo|2ld

    S 2 Replies Last reply
    0
    • S Shuang Wu

      i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added #include "basetsd.h" #include "gdiplus.h" in stdafx.h after all includes and before #endif and built the project. 6 errors were reported: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059: (I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)


      |-|3llo Wo|2ld

      S Offline
      S Offline
      Shuang Wu
      wrote on last edited by
      #2

      By the way, i had added gdiplus.lib to the project


      |-|3llo Wo|2ld

      1 Reply Last reply
      0
      • S Shuang Wu

        i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added #include "basetsd.h" #include "gdiplus.h" in stdafx.h after all includes and before #endif and built the project. 6 errors were reported: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059: (I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)


        |-|3llo Wo|2ld

        S Offline
        S Offline
        Shuang Wu
        wrote on last edited by
        #3

        Anybody that can help me?


        |-|3llo Wo|2ld

        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