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. GDI+ problem initialize.

GDI+ problem initialize.

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcsharpwinformscom
2 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.
  • M Offline
    M Offline
    mostafa_pasha
    wrote on last edited by
    #1

    Hi , I could initialize GDI+ in MFC , my previous system is Intel P4 CPU. I try in visual C++ .NET 2003 & try in visual C++ .NET 2005 & every thing is good and i use GDI+ function from my application. but when i change my system (my system is AMD 4400+ X2 CPU) i write code for initialize GDI+ in MFC, visual C++ .net does not have error when compile my code but my project does not call GDI+ function , for example if i call DrawLine(...) ,nothing happen in my dialog window. another things i can not understand when i excute my code in second system that i worte with my previous system , everythings are good & my project work properly. :omg::confused: I use these routine for initialize and use GDI+ in MFC: http://www.codeproject.com/vcpp/gdiplus/vc6gdiplusmacro.asp[^] Is that relate SDK platform ??? Is that relate to my CPU type? Is there any one can help me????:-O Best Regards. MJM.

    M 1 Reply Last reply
    0
    • M mostafa_pasha

      Hi , I could initialize GDI+ in MFC , my previous system is Intel P4 CPU. I try in visual C++ .NET 2003 & try in visual C++ .NET 2005 & every thing is good and i use GDI+ function from my application. but when i change my system (my system is AMD 4400+ X2 CPU) i write code for initialize GDI+ in MFC, visual C++ .net does not have error when compile my code but my project does not call GDI+ function , for example if i call DrawLine(...) ,nothing happen in my dialog window. another things i can not understand when i excute my code in second system that i worte with my previous system , everythings are good & my project work properly. :omg::confused: I use these routine for initialize and use GDI+ in MFC: http://www.codeproject.com/vcpp/gdiplus/vc6gdiplusmacro.asp[^] Is that relate SDK platform ??? Is that relate to my CPU type? Is there any one can help me????:-O Best Regards. MJM.

      M Offline
      M Offline
      mostafa_pasha
      wrote on last edited by
      #2

      another important thing that i saw, when i debug this code in OnPaint() after initiliaze properly!!! CPaintDC dc(this); // de Gdiplus::Graphics graphic(dc.m_hDC); Pen aPen(RGB(0,255,0)); graphic.DrawLine(&aPen,0,0,100,100); //CDialog::OnPaint(); when i insert breakpoint at graphic.DrawLine(&aPen,0,0,100,100) when run into this function debugger did not go to gdiplus library ! these mean can not work properly. but when i compile my previous code , in breakpoint, ask me where gdiplusgraphics.h that i think it is in SDK platform. Best Regards. MJM

      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