Advertisement
C0BRA

Consor test application

May 14th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. #ifdef _WIN32
  6. #pragma comment(lib, "Consor.lib")
  7. #include <Consor/WindowsConsoleRenderer.hpp>
  8. #include <Consor/WindowsInputSystem.hpp>
  9. #endif
  10.  
  11. #include <Consor/Util/Prompts.hpp>
  12. #include <Consor/WindowSystem.hpp>
  13.  
  14. using namespace Consor;
  15. using namespace Consor::Console;
  16.  
  17. int main(int, char**)
  18. {
  19.     Input::CWindowsInputSystem input;
  20.     CWindowsConsoleRenderer renderer;
  21.  
  22.     WindowSystem::Setup(&renderer, &input);
  23.     atexit([]()
  24.     {
  25.         WindowSystem::Close();
  26.     });
  27.    
  28.     list<std::string> buttons;
  29.     buttons.push_back("OK");
  30.     Util::MessageBox("Hello, world!", "Hello", buttons);
  31.  
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement