{"action":"created","issue":{"url":"https://api.github.com/repos/MyGUI/mygui/issues/64","labels_url":"https://api.github.com/repos/MyGUI/mygui/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/MyGUI/mygui/issues/64/comments","events_url":"https://api.github.com/repos/MyGUI/mygui/issues/64/events","html_url":"https://github.com/MyGUI/mygui/issues/64","id":65701494,"number":64,"title":"BaseManager for DummyPlatform does not compile on non-Windows","user":{"login":"scrawl","id":720642,"avatar_url":"https://avatars.githubusercontent.com/u/720642?v=3","gravatar_id":"","url":"https://api.github.com/users/scrawl","html_url":"https://github.com/scrawl","followers_url":"https://api.github.com/users/scrawl/followers","following_url":"https://api.github.com/users/scrawl/following{/other_user}","gists_url":"https://api.github.com/users/scrawl/gists{/gist_id}","starred_url":"https://api.github.com/users/scrawl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrawl/subscriptions","organizations_url":"https://api.github.com/users/scrawl/orgs","repos_url":"https://api.github.com/users/scrawl/repos","events_url":"https://api.github.com/users/scrawl/events{/privacy}","received_events_url":"https://api.github.com/users/scrawl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T14:36:42Z","updated_at":"2015-05-05T22:14:36Z","closed_at":null,"body":"Compile MyGUI with RENDERSYSTEM = 1 and BUILD_DEMOS=1\r\nResult:\r\n\r\n<pre>\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.h:69:3: error: ‘HWND’ does not name a type\r\n   HWND hWnd;\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.h:70:3: error: ‘HINSTANCE’ does not name a type\r\n   HINSTANCE hInstance;\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:18:1: error: ‘LRESULT’ does not name a type\r\n LRESULT CALLBACK DXWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)\r\n ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In constructor ‘base::BaseManager::BaseManager()’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:65:3: error: class ‘base::BaseManager’ does not have any field named ‘hWnd’\r\n   hWnd(0),\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:66:3: error: class ‘base::BaseManager’ does not have any field named ‘hInstance’\r\n   hInstance(nullptr),\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘void base::BaseManager::_windowResized()’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:77:3: error: ‘RECT’ was not declared in this scope\r\n   RECT rect = { 0, 0, 0, 0 };\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:77:8: error: expected ‘;’ before ‘rect’\r\n   RECT rect = { 0, 0, 0, 0 };\r\n        ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:78:17: error: ‘hWnd’ was not declared in this scope\r\n   GetClientRect(hWnd, &rect);\r\n                 ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:78:24: error: ‘rect’ was not declared in this scope\r\n   GetClientRect(hWnd, &rect);\r\n                        ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:78:28: error: ‘GetClientRect’ was not declared in this scope\r\n   GetClientRect(hWnd, &rect);\r\n                            ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘bool base::BaseManager::create(int, int)’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:94:3: error: ‘WNDCLASS’ was not declared in this scope\r\n   WNDCLASS wc =\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:94:12: error: expected ‘;’ before ‘wc’\r\n   WNDCLASS wc =\r\n            ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:99:18: error: ‘wc’ was not declared in this scope\r\n   RegisterClass(&wc);\r\n                  ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:99:20: error: ‘RegisterClass’ was not declared in this scope\r\n   RegisterClass(&wc);\r\n                    ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:102:3: error: ‘hWnd’ was not declared in this scope\r\n   hWnd = CreateWindow(wc.lpszClassName, TEXT(\"Dummy Render Window\"), WS_OVERLAPPED | WS_SYSMENU,\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:102:67: error: ‘TEXT’ was not declared in this scope\r\n   hWnd = CreateWindow(wc.lpszClassName, TEXT(\"Dummy Render Window\"), WS_OVERLAPPED | WS_SYSMENU,\r\n                                                                   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:102:70: error: ‘WS_OVERLAPPED’ was not declared in this scope\r\n   hWnd = CreateWindow(wc.lpszClassName, TEXT(\"Dummy Render Window\"), WS_OVERLAPPED | WS_SYSMENU,\r\n                                                                      ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:102:86: error: ‘WS_SYSMENU’ was not declared in this scope\r\n   hWnd = CreateWindow(wc.lpszClassName, TEXT(\"Dummy Render Window\"), WS_OVERLAPPED | WS_SYSMENU,\r\n                                                                                      ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:103:22: error: ‘SM_CXSCREEN’ was not declared in this scope\r\n    (GetSystemMetrics(SM_CXSCREEN) - width) / 2, (GetSystemMetrics(SM_CYSCREEN) - height) / 2, width, height, GetDesktopWindow(), NULL, wc.hInstance, this);\r\n                      ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:103:33: error: ‘GetSystemMetrics’ was not declared in this scope\r\n    (GetSystemMetrics(SM_CXSCREEN) - width) / 2, (GetSystemMetrics(SM_CYSCREEN) - height) / 2, width, height, GetDesktopWindow(), NULL, wc.hInstance, this);\r\n                                 ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:103:67: error: ‘SM_CYSCREEN’ was not declared in this scope\r\n    (GetSystemMetrics(SM_CXSCREEN) - width) / 2, (GetSystemMetrics(SM_CYSCREEN) - height) / 2, width, height, GetDesktopWindow(), NULL, wc.hInstance, this);\r\n                                                                   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:103:127: error: ‘GetDesktopWindow’ was not declared in this scope\r\n    (GetSystemMetrics(SM_CXSCREEN) - width) / 2, (GetSystemMetrics(SM_CYSCREEN) - height) / 2, width, height, GetDesktopWindow(), NULL, wc.hInstance, this);\r\n                                                                                                                               ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:103:154: error: ‘CreateWindow’ was not declared in this scope\r\n    (GetSystemMetrics(SM_CXSCREEN) - width) / 2, (GetSystemMetrics(SM_CYSCREEN) - height) / 2, width, height, GetDesktopWindow(), NULL, wc.hInstance, this);\r\n                                                                                                                                                          ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:109:20: error: ‘SW_NORMAL’ was not declared in this scope\r\n   ShowWindow(hWnd, SW_NORMAL);\r\n                    ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:109:29: error: ‘ShowWindow’ was not declared in this scope\r\n   ShowWindow(hWnd, SW_NORMAL);\r\n                             ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:123:3: error: ‘hInstance’ was not declared in this scope\r\n   hInstance = wc.hInstance;\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘void base::BaseManager::run()’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:140:3: error: ‘MSG’ was not declared in this scope\r\n   MSG msg;\r\n   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:140:7: error: expected ‘;’ before ‘msg’\r\n   MSG msg;\r\n       ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:143:24: error: ‘msg’ was not declared in this scope\r\n    while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))\r\n                        ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:143:41: error: ‘PM_REMOVE’ was not declared in this scope\r\n    while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))\r\n                                         ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:143:50: error: ‘PeekMessage’ was not declared in this scope\r\n    while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))\r\n                                                  ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:145:26: error: ‘TranslateMessage’ was not declared in this scope\r\n     TranslateMessage(&msg);\r\n                          ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:146:25: error: ‘DispatchMessage’ was not declared in this scope\r\n     DispatchMessage(&msg);\r\n                         ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:150:13: error: ‘msg’ was not declared in this scope\r\n    else if (msg.message == WM_QUIT)\r\n             ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:150:28: error: ‘WM_QUIT’ was not declared in this scope\r\n    else if (msg.message == WM_QUIT)\r\n                            ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:155:24: error: ‘GetActiveWindow’ was not declared in this scope\r\n    if (GetActiveWindow() != hWnd)\r\n                        ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:155:29: error: ‘hWnd’ was not declared in this scope\r\n    if (GetActiveWindow() != hWnd)\r\n                             ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:156:5: error: ‘::Sleep’ has not been declared\r\n     ::Sleep(50);\r\n     ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘void base::BaseManager::destroy()’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:170:7: error: ‘hWnd’ was not declared in this scope\r\n   if (hWnd)\r\n       ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:172:22: error: ‘DestroyWindow’ was not declared in this scope\r\n    DestroyWindow(hWnd);\r\n                      ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:176:35: error: ‘hInstance’ was not declared in this scope\r\n   UnregisterClass(WND_CLASS_NAME, hInstance);\r\n                                   ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:176:44: error: ‘UnregisterClass’ was not declared in this scope\r\n   UnregisterClass(WND_CLASS_NAME, hInstance);\r\n                                            ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘size_t base::BaseManager::getWindowHandle()’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:213:18: error: ‘hWnd’ was not declared in this scope\r\n   return (size_t)hWnd;\r\n                  ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp: In member function ‘void base::BaseManager::setWindowCaption(const wstring&)’:\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:218:18: error: ‘hWnd’ was not declared in this scope\r\n   SetWindowTextW(hWnd, _text.c_str());\r\n                  ^\r\n/home/scrawl/Dev/mygui/Common/Base/Dummy/BaseManager.cpp:218:37: error: ‘SetWindowTextW’ was not declared in this scope\r\n   SetWindowTextW(hWnd, _text.c_str());\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/MyGUI/mygui/issues/comments/99248228","html_url":"https://github.com/MyGUI/mygui/issues/64#issuecomment-99248228","issue_url":"https://api.github.com/repos/MyGUI/mygui/issues/64","id":99248228,"user":{"login":"justgook","id":306976,"avatar_url":"https://avatars.githubusercontent.com/u/306976?v=3","gravatar_id":"","url":"https://api.github.com/users/justgook","html_url":"https://github.com/justgook","followers_url":"https://api.github.com/users/justgook/followers","following_url":"https://api.github.com/users/justgook/following{/other_user}","gists_url":"https://api.github.com/users/justgook/gists{/gist_id}","starred_url":"https://api.github.com/users/justgook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justgook/subscriptions","organizations_url":"https://api.github.com/users/justgook/orgs","repos_url":"https://api.github.com/users/justgook/repos","events_url":"https://api.github.com/users/justgook/events{/privacy}","received_events_url":"https://api.github.com/users/justgook/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T22:14:36Z","updated_at":"2015-05-05T22:14:36Z","body":"same for OpenGLPlatform"}}