MFC에서 GDIPlus사용하기

MFC에서 GDIPlus를 사용하기 위해서는 다음과 같은 내용으로 세팅하시면 됩니다.

1. stdafx.h 파일에 다음 2줄 추가

#include <gdiplus.h>

using namespace Gdiplus;

2. APP 클래스 헤더에 멤버 추가


  ULONG_PTR m_gdiplusToken;

3. APP InitInstance()함수에 추가

 

GdiplusStartupInput gdiplusStartupInput;

GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

4. APP ExitInstance()함수에 추가

 

GdiplusShutdown(m_gdiplusToken);

5. 프로젝트 세팅에 Debug모드와 Release모드각각에

   gdiplus.lib 추가

Posted by chungki

2009/09/02 10:07 2009/09/02 10:07
, ,
Response
No Trackback , No Comment
RSS :
http://www.chungki.net/tc/rss/response/282


블로그 이미지

Nice !!!!!!!!

- chungki

Notices

Archives

Authors

  1. chungki

Calendar

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Site Stats

Total hits:
73375
Today:
6
Yesterday:
20