Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef UNICODE
- #define UNICODE
- #endif
- #include <windows.h>
- int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine,
- int nCmdShow){
- const wchar_t name[] = L"Test";
- WNDCLASS wc = {};
- //wc.lpfnWndProc = WindowProc;
- wc.hInstance = hInstance;
- wc.lpszClassName = name;
- RegisterClass(&wc);
- HWND hWnd = CreateWindowEx(
- 0,
- name,
- L"Window",
- WS_BORDER,
- CW_USEDEFAULT,
- CW_USEDEFAULT,
- 1200,
- 720,
- 0,
- 0,
- hInstance,
- 0);
- if(hWnd == NULL){
- return 0;
- }
- ShowWindow(hWnd, nCmdShow);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement