Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string Pin
macmac3822-Apr-04 2:13
macmac3822-Apr-04 2:13 
GeneralRe: string Pin
David Crow22-Apr-04 2:15
David Crow22-Apr-04 2:15 
GeneralRe: string Pin
macmac3822-Apr-04 2:32
macmac3822-Apr-04 2:32 
GeneralRe: string Pin
David Crow22-Apr-04 2:52
David Crow22-Apr-04 2:52 
GeneralRe: string Pin
macmac3823-Apr-04 2:26
macmac3823-Apr-04 2:26 
GeneralRe: string Pin
David Crow23-Apr-04 3:35
David Crow23-Apr-04 3:35 
GeneralRe: string Pin
macmac3823-Apr-04 3:55
macmac3823-Apr-04 3:55 
GeneralRe: string Pin
David Crow23-Apr-04 4:15
David Crow23-Apr-04 4:15 
That's all well and good, but in your original post, you indicated that "This arrives at my serial port," implying that the data is indeed there. That's why I asked how you were verifying it.

In the while loop that you are using to read the incoming data, how many times does the loop execute?

After each call to Read(), what is the value of dwBytesRead?

If the incoming data is always in the same format and is always less than X bytes, you might could use this instead:

char received[X];
port.Read(received, sizeof(received), overlapped, &dwBytesRead);
received[dwBytesRead] = '\0';



"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)


GeneralRe: string Pin
macmac3823-Apr-04 5:01
macmac3823-Apr-04 5:01 
GeneralRe: string Pin
David Crow23-Apr-04 5:26
David Crow23-Apr-04 5:26 
GeneralRe: string Pin
macmac3823-Apr-04 6:17
macmac3823-Apr-04 6:17 
GeneralRe: string Pin
David Crow23-Apr-04 6:40
David Crow23-Apr-04 6:40 
GeneralRe: string Pin
macmac3825-Apr-04 22:47
macmac3825-Apr-04 22:47 
GeneralRe: string Pin
David Crow26-Apr-04 2:18
David Crow26-Apr-04 2:18 
GeneralRe: string Pin
macmac3826-Apr-04 2:25
macmac3826-Apr-04 2:25 
GeneralRe: string Pin
David Crow26-Apr-04 2:31
David Crow26-Apr-04 2:31 
Generalcustom resource problem Pin
chocm20-Apr-04 23:36
chocm20-Apr-04 23:36 
GeneralRe: custom resource problem Pin
David Crow21-Apr-04 2:52
David Crow21-Apr-04 2:52 
GeneralRe: custom resource problem Pin
chocm21-Apr-04 18:46
chocm21-Apr-04 18:46 
GeneralRe: custom resource problem Pin
David Crow22-Apr-04 2:05
David Crow22-Apr-04 2:05 
GeneralRe: custom resource problem Pin
chocm22-Apr-04 18:26
chocm22-Apr-04 18:26 
GeneralRe: custom resource problem Pin
David Crow23-Apr-04 2:08
David Crow23-Apr-04 2:08 
GeneralRe: custom resource problem Pin
chocm24-Apr-04 23:20
chocm24-Apr-04 23:20 
GeneralRe: custom resource problem Pin
David Crow26-Apr-04 2:20
David Crow26-Apr-04 2:20 
QuestionHow to scroll CListView down ? Pin
vgrigor20-Apr-04 23:26
vgrigor20-Apr-04 23:26 

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.