Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: parameter of glutInit Pin
aguest6-May-03 11:38
aguest6-May-03 11:38 
GeneralRe: parameter of glutInit Pin
Joaquín M López Muñoz6-May-03 12:05
Joaquín M López Muñoz6-May-03 12:05 
GeneralRe: parameter of glutInit Pin
aguest7-May-03 10:21
aguest7-May-03 10:21 
GeneralSDI and multiple views Pin
#realJSOP6-May-03 9:06
mve#realJSOP6-May-03 9:06 
GeneralRe: SDI and multiple views Pin
Alin Negru6-May-03 21:18
Alin Negru6-May-03 21:18 
General::LoadImage() out of memory error Pin
Iceman6-May-03 8:25
Iceman6-May-03 8:25 
GeneralRe: ::LoadImage() out of memory error Pin
AlexO6-May-03 10:21
AlexO6-May-03 10:21 
GeneralSerial Port Pin
Paddy6-May-03 8:24
Paddy6-May-03 8:24 
Hi hope someone can help me out here.

I have a program that recieves data from the serial port of the PC and saves it into a file using:

<br />
byte rec;<br />
<br />
:<br />
:<br />
:<br />
<br />
for(i=0;i<512;i++)<br />
	{<br />
	ReadFile(handlePort, &rec, 1, (LPDWORD)&bytes, NULL);<br />
<br />
	fprintf(out, "%C", rec);<br />
	}<br />


The problem is that it wont save the hex values 0x11 and 0x13 to the file when they are received from the serial port, I'm pretty sure it is because they are control characters, maybe? Also every so often it saves 0x0D to the file!

Any ideas how I can get around this problem?
Thanks in advance,
Paddy
GeneralRe: Serial Port Pin
Sean Cundiff6-May-03 8:36
Sean Cundiff6-May-03 8:36 
GeneralRe: Serial Port Pin
Paddy6-May-03 10:16
Paddy6-May-03 10:16 
GeneralRe: Serial Port Pin
JohnnyG6-May-03 15:21
JohnnyG6-May-03 15:21 
GeneralRe: Serial Port Pin
Paddy7-May-03 5:43
Paddy7-May-03 5:43 
GeneralRe: Serial Port Pin
Dr-Kuulun6-May-03 21:24
Dr-Kuulun6-May-03 21:24 
GeneralRe: Serial Port Pin
Paddy7-May-03 5:48
Paddy7-May-03 5:48 
QuestionWhat is best way to replace CDao classes? Pin
slacker6-May-03 7:56
slacker6-May-03 7:56 
AnswerRe: What is best way to replace CDao classes? Pin
slacker6-May-03 7:58
slacker6-May-03 7:58 
GeneralWorker Thread Question! Pin
peter ho6-May-03 6:55
peter ho6-May-03 6:55 
GeneralRe: Worker Thread Question! Pin
jmkhael6-May-03 7:06
jmkhael6-May-03 7:06 
GeneralRe: Worker Thread Question! Pin
David Crow6-May-03 7:08
David Crow6-May-03 7:08 
GeneralRe: Worker Thread Question! Pin
valikac6-May-03 8:52
valikac6-May-03 8:52 
GeneralChange CProgressCtrl´s color Pin
VietDelphi6-May-03 6:27
VietDelphi6-May-03 6:27 
GeneralRe: Change CProgressCtrl´s color Pin
Michael Pauli6-May-03 6:35
Michael Pauli6-May-03 6:35 
GeneralRe: Change CProgressCtrl´s color Pin
VietDelphi6-May-03 6:43
VietDelphi6-May-03 6:43 
GeneralRe: Change CProgressCtrl´s color Pin
Michael Pauli7-May-03 0:44
Michael Pauli7-May-03 0:44 
GeneralThanks you ;o) Pin
VietDelphi8-May-03 3:23
VietDelphi8-May-03 3:23 

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.