Skip to content

Instantly share code, notes, and snippets.

@bg1bgst333
Last active August 29, 2015 14:11
Show Gist options
  • Save bg1bgst333/f7b935c665c6f51cff44 to your computer and use it in GitHub Desktop.
Save bg1bgst333/f7b935c665c6f51cff44 to your computer and use it in GitHub Desktop.
WinMain#WinMain.cpp
// ヘッダファイルのインクルード
#include <windows.h> // 標準WindowsAPI
// ヘッダファイルのインクルード
#include <windows.h> // 標準WindowsAPI
// WinMain関数の定義
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ // Windowsプログラムのエントリポイント
}
// ヘッダファイルのインクルード
#include <windows.h> // 標準WindowsAPI
// WinMain関数の定義
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ // Windowsプログラムのエントリポイント
// 以下の処理を実行
MessageBox(NULL, "WinMain", "WinMain", MB_OK); // MessageBoxで"WinMain"と表示する.
}
// ヘッダファイルのインクルード
#include <windows.h> // 標準WindowsAPI
// WinMain関数の定義
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ // Windowsプログラムのエントリポイント
// 以下の処理を実行
MessageBox(NULL, "WinMain", "WinMain", MB_OK); // MessageBoxで"WinMain"と表示する.
// プログラムの終了
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment