Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[Message Deleted] Pin
MrFloyd200928-Apr-08 9:58
MrFloyd200928-Apr-08 9:58 
GeneralRe: How To Connect Serial Port in MFC? Pin
David Crow28-Apr-08 10:01
David Crow28-Apr-08 10:01 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 10:05
MrFloyd200928-Apr-08 10:05 
GeneralRe: How To Connect Serial Port in MFC? Pin
David Crow28-Apr-08 10:09
David Crow28-Apr-08 10:09 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 10:19
MrFloyd200928-Apr-08 10:19 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini28-Apr-08 10:28
mveCPallini28-Apr-08 10:28 
GeneralRe: How To Connect Serial Port in MFC? Pin
David Crow28-Apr-08 10:40
David Crow28-Apr-08 10:40 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 10:55
MrFloyd200928-Apr-08 10:55 
I changed some part of my code. Now, I wrote GetLastError section like belove and the getlasterror result was 6:


hComm_ = CreateFile("COM1", // Specify port device: default "COM1"
GENERIC_READ | GENERIC_WRITE, // Specify mode that open device.
0, // the devide isn't shared.
NULL, // the object gets a default security.
OPEN_EXISTING, // Specify which action to take on file.
0, // default.
NULL); // default.

// Get current configuration of serial communication port.
if (GetCommState(hComm,&dcb) == 0)
{
char sMsg[512];
DWORD dwError = GetLastError();
sprintf(sMsg, "Error=%d ",
dwError);
AfxMessageBox(sMsg); // prints to screen 6
return FALSE;
}
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 11:00
MrFloyd200928-Apr-08 11:00 
GeneralRe: How To Connect Serial Port in MFC? Pin
David Crow28-Apr-08 11:06
David Crow28-Apr-08 11:06 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 11:40
MrFloyd200928-Apr-08 11:40 
GeneralRe: How To Connect Serial Port in MFC? Pin
Randor 28-Apr-08 12:42
professional Randor 28-Apr-08 12:42 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini28-Apr-08 21:13
mveCPallini28-Apr-08 21:13 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200928-Apr-08 23:11
MrFloyd200928-Apr-08 23:11 
QuestionRe: How To Connect Serial Port in MFC? Pin
CPallini28-Apr-08 23:45
mveCPallini28-Apr-08 23:45 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 0:11
MrFloyd200929-Apr-08 0:11 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 0:23
mveCPallini29-Apr-08 0:23 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 0:48
MrFloyd200929-Apr-08 0:48 
QuestionRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 0:54
mveCPallini29-Apr-08 0:54 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 1:24
MrFloyd200929-Apr-08 1:24 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 1:33
mveCPallini29-Apr-08 1:33 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 1:56
MrFloyd200929-Apr-08 1:56 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 1:58
mveCPallini29-Apr-08 1:58 
AnswerRe: How To Connect Serial Port in MFC? Pin
Hamid_RT29-Apr-08 4:09
Hamid_RT29-Apr-08 4:09 
GeneralRetrieve Win32 Process Memory Map Pin
edfgreen28-Apr-08 8:19
edfgreen28-Apr-08 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.