2025-03-02 01:41:12
2025-03-02 02:54:45
这一句报错 LPSTR lpstr=str.GetBuffer();
error C2440: 'initializing' : cannot convert from 'wchar_t *' to 'LPSTR'
两种方法,你都试试:
1. 将Project Properties中的Configureation Properties->General->Character Set = Not Set,重新编译
2. LPSTR lpstr=str.GetBuffer(str.GetLength());