1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "windows.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { LPWSTR s = L"おはようございます"; // メッセージボックスに表示 MessageBox(NULL, s, L"MsgBox", MB_OK); // 正常終了 return 0; }