Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 6th, 2011  |  syntax: C++  |  size: 0.54 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <Windows.h>
  2.  
  3. #include "GUIMain.h"
  4.  
  5. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  6.  
  7. int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  8. {
  9.         GUIMain * mainWindow = new GUIMain(hInstance);
  10.  
  11.         mainWindow->Register();
  12.         if (!mainWindow->Create())
  13.                 return 666;
  14.         WPARAM ret = mainWindow->Show(nCmdShow);
  15.  
  16.         delete mainWindow;
  17.         return ret;
  18. }
  19.