본문 바로가기

[+] Information/[-] ETC

API GraphOut 예제 #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPSTR lpszClass="GraphOut"; 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=LoadC.. 더보기
API DrawText 예제 #include /* 기본적인 데이터 타입, 함수 원형, 매크로 상수 정의 헤더파일 */ LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPSTR lpszClass="DrawText"; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) /* 윈도우즈 프로그램의 시작점은 Main이 아닌 WinMain이다. EP(Entry Point) */ /* hInstance : 프로그램의 인스턴스 핸들이다. */ /* hPrevInstance : 바로 앞에 실행된 현재 프로그램의 인스턴스 핸들이다. 없을 경우는 NU.. 더보기
API TextOut 예제 #include /* 기본적인 데이터 타입, 함수 원형, 매크로 상수 정의 헤더파일 */ LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPSTR lpszClass="TextOut"; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) /* 윈도우즈 프로그램의 시작점은 Main이 아닌 WinMain이다. EP(Entry Point) */ /* hInstance : 프로그램의 인스턴스 핸들이다. */ /* hPrevInstance : 바로 앞에 실행된 현재 프로그램의 인스턴스 핸들이다. 없을 경우는 NUL.. 더보기
첫번째 예제 #include /* 기본적인 데이터 타입, 함수 원형, 매크로 상수 정의 헤더파일 */ LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; LPSTR lpszClass="First"; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) /* 윈도우즈 프로그램의 시작점은 Main이 아닌 WinMain이다. EP(Entry Point) */ /* hInstance : 프로그램의 인스턴스 핸들이다. */ /* hPrevInstance : 바로 앞에 실행된 현재 프로그램의 인스턴스 핸들이다. 없을 경우는 NULL이.. 더보기
API 셋팅. File -> New를 클릭하면 아래와 같이 나온다. 빨간 상자로 둘러쳐진 곳을 클릭한뒤 Project Name에 프로젝트 이름을 써 넣어주면 된다. File -> New 를 더 한번 클릭하면 아래와 같이 나온다. File 부분에 파일이름을 쓴 뒤 확장자는 .cpp로 해준다. 더보기