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