Click here to Skip to main content
16,017,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setup a Default Button Pin
Ian Bowler12-Oct-05 11:07
Ian Bowler12-Oct-05 11:07 
GeneralRe: Setup a Default Button Pin
David Crow13-Oct-05 2:55
David Crow13-Oct-05 2:55 
AnswerRe: Setup a Default Button Pin
vikas amin12-Oct-05 22:33
vikas amin12-Oct-05 22:33 
AnswerRe: Setup a Default Button Pin
ThatsAlok13-Oct-05 1:59
ThatsAlok13-Oct-05 1:59 
GeneralRe: Setup a Default Button Pin
Ian Bowler13-Oct-05 5:26
Ian Bowler13-Oct-05 5:26 
QuestionInvisible temporary Pin
Bob Stanneveld12-Oct-05 6:47
Bob Stanneveld12-Oct-05 6:47 
QuestionSerial Comms Help Please! Pin
Member 138216012-Oct-05 6:34
Member 138216012-Oct-05 6:34 
AnswerRe: Serial Comms Help Please! Pin
Rage12-Oct-05 7:12
professionalRage12-Oct-05 7:12 
bigjrags wrote:
Question #1 is the way I am storing the read return(it seems to work
alright) the best way to do it, char in[13] ?


This code snippet makes me doubt:

end = serial.ReadData(&in,20);


I do not know about the CSerial class, and therefore do not know what ReadData needs as parameters, but something tells me that the fact that 20 is greater than 13 is no good Sniff | :^)

This

while(1) 
{ 
..

if((int)in[7] > 4) 
break; 
} 


is a good way to get your application hang in case the expected break value never gets sent, or wrongly received. A condition where the user could interrupt the reading is much better than (1).


bigjrags wrote:
I need to test the response in terms of binary?

What do you mean: Are you asking how to do it, or if you have to do it ?

~RaGE();
Questionproblems with WinINet.h with visual studio 2003 Pin
brwoodru12-Oct-05 6:18
brwoodru12-Oct-05 6:18 
AnswerRe: problems with WinINet.h with visual studio 2003 Pin
prasad_som12-Oct-05 21:24
prasad_som12-Oct-05 21:24 
QuestionProblems Bringing Active X Control (.ocx) Into An Application Pin
johndavis12-Oct-05 6:06
johndavis12-Oct-05 6:06 
QuestionDo I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 5:55
Federico Milano12-Oct-05 5:55 
AnswerRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Rage12-Oct-05 7:05
professionalRage12-Oct-05 7:05 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 7:38
Federico Milano12-Oct-05 7:38 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller13-Oct-05 18:16
Blake V. Miller13-Oct-05 18:16 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano14-Oct-05 2:20
Federico Milano14-Oct-05 2:20 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller24-Nov-05 9:09
Blake V. Miller24-Nov-05 9:09 
QuestionExecute and retrieve data from console Pin
schemp9812-Oct-05 5:11
schemp9812-Oct-05 5:11 
QuestionRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 6:22
David Crow12-Oct-05 6:22 
AnswerRe: Execute and retrieve data from console Pin
schemp9812-Oct-05 7:09
schemp9812-Oct-05 7:09 
GeneralRe: Execute and retrieve data from console Pin
Rage12-Oct-05 7:26
professionalRage12-Oct-05 7:26 
GeneralRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 7:33
David Crow12-Oct-05 7:33 
QuestionGetting IP Address through WMI Pin
qrverona12-Oct-05 4:23
qrverona12-Oct-05 4:23 
AnswerRe: Getting IP Address through WMI Pin
David Crow12-Oct-05 6:31
David Crow12-Oct-05 6:31 
QuestionApplication getting stuck because of load ? Pin
Amarelia12-Oct-05 3:25
Amarelia12-Oct-05 3:25 

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.