Advertisement
ACI-XCIX_0001

Untitled

Mar 29th, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. * Executing task: C/C++: g++.exe build active file
  2.  
  3. Starting build...
  4. cmd /c chcp 65001>nul && C:\msys64\ucrt64\bin\g++.exe -fdiagnostics-color=always -g F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp -o F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.exe
  5. F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp: In function 'LRESULT OnWindowClose(HWND, UINT, WPARAM, LPARAM)':
  6. F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp:11:26: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
  7. 11 | if (MessageBox(window, L"Are you sure you want exit?", L"Close Form", MB_ICONQUESTION | MB_YESNO) == IDYES)
  8. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. | |
  10. | const wchar_t*
  11. In file included from C:/msys64/ucrt64/include/windows.h:72,
  12. from F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp:3:
  13. C:/msys64/ucrt64/include/winuser.h:3714:54: note: initializing argument 2 of 'int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)'
  14. 3714 | WINUSERAPI int WINAPI MessageBoxA(HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType);
  15. | ~~~~~~~^~~~~~
  16. F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp: In function 'int main()':
  17. F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp:28:41: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
  18. 28 | window = CreateWindowEx(0, WC_DIALOG, L"Form example", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 640, 480, nullptr, nullptr, nullptr, nullptr);
  19. | ^~~~~~~~~~~~~~~
  20. | |
  21. | const wchar_t*
  22. C:/msys64/ucrt64/include/winuser.h:2203:84: note: initializing argument 3 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
  23. 2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam);
  24. | ~~~~~~~^~~~~~~~~~~~
  25. F:\Data\P.Storage\Operations\Current\waiting\vscode_test\test1\test1_1.cpp:29:41: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
  26. 29 | button = CreateWindowEx(0, WC_BUTTON, L"Close", WS_CHILD | WS_VISIBLE, 10, 10, 75, 25, window, nullptr, nullptr, nullptr);
  27. | ^~~~~~~~
  28. | |
  29. | const wchar_t*
  30. C:/msys64/ucrt64/include/winuser.h:2203:84: note: initializing argument 3 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
  31. 2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam);
  32. | ~~~~~~~^~~~~~~~~~~~
  33.  
  34. Build finished with error(s).
  35.  
  36. * The terminal process terminated with exit code: -1.
  37. * Terminal will be reused by tasks, press any key to close it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement