[問題] CString Format 用法
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VS2005 C++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
我想把位元資料寫入字串內
再由這個字串寫進Excel內
出錯程式碼在下面
希望有人可以解答 感謝各位
餵入的資料(Input):
BYTE 資料
預期的正確結果(Expected Output):
str要變成 "01"字串
錯誤結果(Wrong Output):
error C2679: binary '=' : no operator found which takes a right-hand
operand of type 'void' (or there is no acceptable conversion)
程式碼(Code):(請善用置底文網頁, 記得排版)
BYTE b;
........
str=string.Format("%02X", b);
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.128.90.1
→
04/11 09:11, , 1F
04/11 09:11, 1F
→
04/11 11:32, , 2F
04/11 11:32, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章