- Code:
dwError = GetLastError();
sprintf(sMsg, "SetupComm failed: Port=%s Error=%d",
m_sComPort, dwError);
AfxMessageBox(sMsg);
hi,
always get error:
>error C2665: 'AfxMessageBox' : none of the 2 overloads can convert parameter 1 from type 'char [512]'<
thanks nio