为什么输出的不是A而是4153f8,想不通,帮我看看,在线等,谢谢
xjb12 2005-06-02 09:49:43 代码如下:
void CCRCTESTDlg::OnButtonComputer()
{
// TODO: Add your control notification handler code here
UpdateData(true);
CString str;
int length;
LPCTSTR buf;
char buffer[200];
// m_cInput.GetWindowText(str);
// buf=str;
char*d ="10";
sprintf(buffer,"%x",d);
MessageBox(buffer);
UpdateData(false);
}