LPARAM 转CString问题
vc2005MFC中怎么转LRESULTCServerDlg::OnRecvData(WPARAMwParam,LPARAMlParam){CStringstr;str....
vc2005 MFC中怎么转
LRESULT CServerDlg::OnRecvData(WPARAM wParam,LPARAM lParam)
{
CString str;
str.format("%s",(lParam);
SetDlgItemText(IDC_EDIT1,str);
return 0;
}
从这里传值
char recvbuf[32]="";
::PostMessage(hwnd,WM_RECVDATA,0,(LPARAM)recvbuf); 展开
LRESULT CServerDlg::OnRecvData(WPARAM wParam,LPARAM lParam)
{
CString str;
str.format("%s",(lParam);
SetDlgItemText(IDC_EDIT1,str);
return 0;
}
从这里传值
char recvbuf[32]="";
::PostMessage(hwnd,WM_RECVDATA,0,(LPARAM)recvbuf); 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询