API로 프로그램을 만들다보면 글자 찍을 일이 많습니다. 그런데 내 컴퓨터에 설치되어있는 폰트가 다른사용자의 컴퓨터에는 설치가 되어 있지 않아서 만들때는 멋잇엇는데, 실제로 다른 컴퓨터에서 실행해보면 누추한 경우가 있습니다. 이럴때 GDI와 GDI+ 에서의 폰트파일을 경로를 지정하여 로드하는 함수가 있습니다. GDI AddFontResource("파일명"); RemoveFontResource("파일명"); AddFontResource("파일명"); 가 호출되면 호출된 시점부터 RemoveFontResource("파일명");가 호출되거나, 컴퓨터가 제부팅 되기 전까지는 해당 파일명을 가지는 폰트를 사용할 수 있습니다. GDI+ 이것때문에 고생을 했는데, GDI+에서 폰트를 만들고 글자를 찍으면 AddFon..
어목
API 사용 아이온조선에 있는 번역기를 프로그램으로 만들었습니다. 일단 메뉴에서 자신의 종족을 선택후, 첫번쨰 칸에다가 천족에게 전할 메세지를 '영어'로 입력 하시구 아래 번역 버튼을 누르시면 두번째 칸에 채팅창에 입력해야될 문자가 나옵니다. 세번째 칸은, 두번째 칸에 있는 문자열을 채팅창에 입력햇을때, 천족에게 보이는 문자를 예상하여 표시한것입니다. 참고한 사이트 http://dns.paran.com/link/?argv=a2V5d29yZD0lQkUlQzYlQzAlQ0MlQkYlQzIlQzAlQ0UlQkElQTUmdGl0bGU9JUJFJUM2JUMwJUNDJUM1JURCJUI4JUM1JUI0JUNGJUJFJUM2LSVCRSVDNiVDMCVDQyVCRiVDMiVDMCVDRSVCQSVBNSZzaG93dXJs..
//Written by akon47. #include #include "resource.h" #define MAXSTAGE 5 #define BH 32 #define BW 32 #define REGAME 0 int nx,ny; int dx=0,dy=0; int nsg=0; int nmove=0; int tmove=0; int time=0; int totime=0; int ManBit=4; HBITMAP hBit[9]; void DrawScreen(HDC hdc); void DrawBitmap(HDC hdc,int x, int y, HBITMAP hBit); void move(); void scansg(int s); BOOL End(void); void Rstage(void); void Clear(HWND..
#include #include "resource.h" LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; HWND hWndMain; LPCTSTR lpszClass=TEXT("InfoDlg"); int x; int y; TCHAR str[128]; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; WndClass.cbWndExtra=0; WndClass..
#include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("TimerText2"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; WndClass.cbWndExtra=0; WndClass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); WndClass.hCur..
#include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("Key"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; WndClass.cbWndExtra=0; WndClass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); WndClass.hCursor=Loa..
#include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("First"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; WndClass.cbWndExtra=0; WndClass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); WndClass.hCursor=..
- Total
- Today
- Yesterday
- Programming - C / C++
- 소니
- GAME
- Programing
- TCP/IP
- ffmpeg
- 유마일
- WPF
- 하이퍼큐브
- Programming - C
- 구글
- 인코더
- 데몬
- 프로그래밍
- 녹화
- 가상드라이브
- WL-54G
- PSP
- V3
- API 프로그래밍
- 백신
- Operation System
- 스터디_발표자료
- KAI
- c#
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |