[問題] CString 含中文字,compiler如何處理?

看板Programming作者 (AuronC)時間17年前 (2007/10/31 21:20), 編輯推噓3(301)
留言4則, 4人參與, 最新討論串1/4 (看更多)
Dear all: CClientDC dc(this); CString str = "abc上中下"; dc.TextOut( 0, 0, str ); 編譯器: VC6 OS: WinXP TextOut可以正確顯示英漢字,是因為compilier(?)or OS(?) or CString(?) 作了一些手法,可以正確秀出字來,它怎麼知道一次看1byte or 2bytes? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.124.180.15

10/31 21:31, , 1F
terminal在處理(吧)
10/31 21:31, 1F

10/31 22:12, , 2F
你其實是在呼叫TextOutW()吧?
10/31 22:12, 2F

10/31 22:38, , 3F
我開英文的dialog based AP,應該無UNICODE
10/31 22:38, 3F

11/01 00:30, , 4F
用 WinHex 看 data section ?___?
11/01 00:30, 4F
文章代碼(AID): #17A840ct (Programming)
討論串 (同標題文章)
文章代碼(AID): #17A840ct (Programming)