1.
安裝后,新建D3D程序,編譯時(shí),將L宏去掉。
2.
安裝后 設(shè)置setting->edit->otheroption utf-8編碼
新建D3D程序,設(shè)置build option -> compile -> define
_UNICODE
UNICODE
將 INT WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,INT)
改成
int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
3.
安裝后,新建D3D程序,設(shè)置build option -> compile -> define
_UNICODE
UNICODE
將 INT WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,INT)
改成
int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
設(shè)置 build option -> compile -> other option
-finput-charset=UTF-8
-fexec-charset=UTF-8
-------------------------------------------------------------------------------
網(wǎng)上說改成 windows-936 或者GBK GBK312(-finput-charset 和 -fexec-charset設(shè)置)
codeblocks編譯時(shí)候提示 ERROR converting GBK TO UTF-8 .........
網(wǎng)上說 這個(gè)先GBK轉(zhuǎn)成UTF-8 然后UTF-8在轉(zhuǎn)會(huì)GBK,所以英文亂碼??墒俏叶季幾g不過,不知道大牛都怎么做
還是不太清楚這個(gè)。
嗯 不過總算編譯,顯示都沒問題了。o(^▽^)o!??!
property->build targets->types:
gui-> exe程序
console->控制臺(tái)
D3D例子 用哪個(gè)都可以生成,不過console輸出中文還是亂碼。。。 明天研究吧