level 1
雷穆天
楼主
码,编译通过,运行出现乱码,请问到底哪里不对了?
CString text;
int index=m_acType.GetCurSel();//m_acType是一个CComboBox控件的关联变量
int len=m_acType.GetLBTextLen(index);
m_acType.GetLBText(index,text.GetBuffer(5));
text.ReleaseBuffer();
(我确定,出现乱码的问题一定出现在这里。)
乱码是这个的:
Program: ...ì\ê??úè????a?a?ü????ò?′óê|\Debug\ê??úè????a?a?ü????ò?′óê|.exe
File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxwin2.inl
Line: 853For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
2013年01月16日 03点01分
1
CString text;
int index=m_acType.GetCurSel();//m_acType是一个CComboBox控件的关联变量
int len=m_acType.GetLBTextLen(index);
m_acType.GetLBText(index,text.GetBuffer(5));
text.ReleaseBuffer();
(我确定,出现乱码的问题一定出现在这里。)
乱码是这个的:
Program: ...ì\ê??úè????a?a?ü????ò?′óê|\Debug\ê??úè????a?a?ü????ò?′óê|.exe
File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxwin2.inl
Line: 853For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.