Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #ifdef _WIN32
- #pragma comment(lib, "Consor.lib")
- #include <Consor/WindowsConsoleRenderer.hpp>
- #include <Consor/WindowsInputSystem.hpp>
- #endif
- #include <Consor/Util/Prompts.hpp>
- #include <Consor/WindowSystem.hpp>
- using namespace Consor;
- using namespace Consor::Console;
- int main(int, char**)
- {
- Input::CWindowsInputSystem input;
- CWindowsConsoleRenderer renderer;
- WindowSystem::Setup(&renderer, &input);
- atexit([]()
- {
- WindowSystem::Close();
- });
- list<std::string> buttons;
- buttons.push_back("OK");
- Util::MessageBox("Hello, world!", "Hello", buttons);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement