Zalgo/src/Zalgo.cpp

31 lines
1.2 KiB
C++
Raw Normal View History

2013-05-31 22:46:30 -04:00
#include <MainWindow.hpp>
2013-03-30 13:05:37 -04:00
#include <commctrl.h>
#include <objbase.h>
#pragma comment(lib, "comctl32.lib")
#pragma comment(lib, "ole32.lib")
class COleInitialize {
public:
COleInitialize() : m_hr(OleInitialize(NULL)) { }
~COleInitialize() { if (SUCCEEDED(m_hr)) OleUninitialize(); }
operator HRESULT() const { return m_hr; }
HRESULT m_hr;
};
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) {
COleInitialize oleInit;
InitCommonControls();
2013-05-31 22:46:30 -04:00
MainWindow *win = MainWindow::Create(L"U̬̩͔̐̿ṅ̨̤̬̽i̛̘̳̹ͤ̍c̠̳̬͛o̘̳͗̿̈́d̗̅̓͗͠ḛ͍͛ ̬̠̹̉ͭ͛D̨̤̰̀̂ͦì̛͇͂a͍͇͛ͨͤc̡̟͖͗̔ͤͅr͔͇ͮ̓̍͢i̴͇͇̇͋̽t̛̟̟͋i̲̘̿̊c̺͎ͬ͗-̴̤́̔P̋̍҉͎̹ö̲̯͈̋͞l͎͂l̻̖ͩ̂͜u̵͔̳̇̋t̳̪͐̎e͈̓͢ḓ̗̭̓ ̹̫͛Ṭͫe̙̝̦̊̊̑͢x̶͉ͦ̚t̞̔̈́̀ ̡̪̪̙͒͗G̘̜̋e͍̯̻͋ͬͦn̹̩̫̑̈́ẽ͔̳r̠͙͒̀̅ͅa̭ͫ̓́t̘̺̋̏̚o̰̙̦ͪṛͦͣ́ͅ");
2013-03-30 13:05:37 -04:00
if (win) {
ShowWindow(win->GetHWND(), nCmdShow);
MSG msg;
while (GetMessage(&msg, NULL, 0, 0) > 0) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return 0;
}