Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to make a stealth application Pin
JWood2-Mar-05 5:17
JWood2-Mar-05 5:17 
GeneralRe: how to make a stealth application Pin
David Crow2-Mar-05 8:37
David Crow2-Mar-05 8:37 
QuestionHow to minimize Form to taskbar like mediaplay9 Pin
sprewellkobe1-Mar-05 19:47
sprewellkobe1-Mar-05 19:47 
GeneralDRAWCLI design help Pin
KoderProject1-Mar-05 19:39
sussKoderProject1-Mar-05 19:39 
QuestionHow to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 19:39
saha2k51-Mar-05 19:39 
AnswerRe: I got the answer !!!!!!!!!! Pin
saha2k51-Mar-05 22:10
saha2k51-Mar-05 22:10 
GeneralNULL character problem Pin
LighthouseJ1-Mar-05 18:38
LighthouseJ1-Mar-05 18:38 
GeneralRe: NULL character problem Pin
RicoH2-Mar-05 0:31
RicoH2-Mar-05 0:31 
It's not because there is a null character in your string that the rest of your data isn't read from the serial port.
What you can do is read the data (all at once) in to a char[] and then copy character per character into a string if you want to...

Something like this:

int i, index=0;
char DataBuffer[], StringBuffer[];

ReadFile(...)

for (i=0; i < NumberOfBytesRead; i++)
{
if (DataBuffer[i] != '\0')
StringBuffer[index++] = DataBuffer[i];
}

This way you don't have to worry about communication timing and so on.



Don't think you are, know you are...
GeneralRe: NULL character problem Pin
LighthouseJ2-Mar-05 2:48
LighthouseJ2-Mar-05 2:48 
GeneralRe: NULL character problem Pin
David Crow2-Mar-05 2:34
David Crow2-Mar-05 2:34 
GeneralRe: NULL character problem Pin
LighthouseJ2-Mar-05 2:46
LighthouseJ2-Mar-05 2:46 
QuestionHow to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 18:23
saha2k51-Mar-05 18:23 
AnswerRe: How to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 22:25
saha2k51-Mar-05 22:25 
Question&quot; MFC appliation has encountered an error&quot; Why??? Pin
wasife1-Mar-05 17:32
wasife1-Mar-05 17:32 
AnswerRe: &quot; MFC appliation has encountered an error&quot; Why??? Pin
Christian Graus1-Mar-05 18:04
protectorChristian Graus1-Mar-05 18:04 
AnswerRe: " MFC appliation has encountered an error" Why??? Pin
David Crow2-Mar-05 2:44
David Crow2-Mar-05 2:44 
GeneralRe: &quot; MFC appliation has encountered an error&quot; Why??? Pin
Chris Losinger2-Mar-05 3:16
professionalChris Losinger2-Mar-05 3:16 
QuestionHow can I get the MAC addresses of all IP devices on same network ? Pin
charisma_youn1-Mar-05 16:34
charisma_youn1-Mar-05 16:34 
AnswerRe: How can I get the MAC addresses of all IP devices on same network ? Pin
Alexander M.,2-Mar-05 2:58
Alexander M.,2-Mar-05 2:58 
Questionhow to create setup files Pin
rjnl1-Mar-05 15:39
rjnl1-Mar-05 15:39 
AnswerRe: how to create setup files Pin
LighthouseJ1-Mar-05 15:59
LighthouseJ1-Mar-05 15:59 
AnswerRe: how to create setup files Pin
zhang8006051-Mar-05 16:13
zhang8006051-Mar-05 16:13 
AnswerRe: how to create setup files Pin
ThatsAlok2-Mar-05 2:38
ThatsAlok2-Mar-05 2:38 
QuestionHow to determine the column No. in CListView when user right-clicked the list header? Pin
lisoft1-Mar-05 15:32
lisoft1-Mar-05 15:32 
AnswerRe: How to determine the column No. in CListView when user right-clicked the list header? Pin
zhang8006051-Mar-05 17:04
zhang8006051-Mar-05 17:04 

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.