F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39087269_13356.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
0_0_39087269_13356.cpp:12:25: error: cannot convert 'const wchar_t*' to 'LPCTSTR' {aka 'const char*'} in initialization
   12 |     LPCTSTR szAppName = L"OFWIN";
      |                         ^~~~~~~~
      |                         |
      |                         const wchar_t*
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/windows.h:72,
                 from 0_0_39087269_13356.cpp:1:
0_0_39087269_13356.cpp:33:9: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
   33 |         L"A standard WinMain Frame",
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         const wchar_t*
gcc-13.1.0/x86_64-w64-mingw32/include/winuser.h:2203:84: note:   initializing argument 3 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
 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);
      |                                                                             ~~~~~~~^~~~~~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-19 03:25:29, Gzip enabled