Click here to Skip to main content
15,886,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:29
manojk_batra5-Jan-06 20:29 
AnswerRe: CreateProcess!! Pin
Owner drawn5-Jan-06 19:01
Owner drawn5-Jan-06 19:01 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:33
manojk_batra5-Jan-06 20:33 
AnswerRe: CreateProcess!! Pin
sunit55-Jan-06 19:06
sunit55-Jan-06 19:06 
GeneralRe: CreateProcess!! Pin
manojk_batra5-Jan-06 20:45
manojk_batra5-Jan-06 20:45 
Questionhow can i create worker and UI thread in single application Pin
Laxman95-Jan-06 17:49
Laxman95-Jan-06 17:49 
AnswerRe: how can i create worker and UI thread in single application Pin
Anilkumar K V5-Jan-06 18:05
Anilkumar K V5-Jan-06 18:05 
QuestionHow to create an independent thread for reading data from buffer of Serial Port ??? Pin
QuangDien5-Jan-06 15:17
QuangDien5-Jan-06 15:17 
Dear everyone,

I have to receive a very large data from my sensor via Serial Port. Here below is the structure of my data :

10 bytes HEADER + ( 4 bytes BEGIN + 240bytes DATA )*280 + 4 byes FOOTER
=> The total byte is : 10 + ( 4 + 240 )*280 + 4 = 68334 byes !

And, with such a large data, I don't know how to receive it. My buffer always overflow !!! So, now, I want to create a independent thread for reading data out of buffer, saving to other place and free the buffer sothat it can receive other data from my sensor without overflowing. I tried search "Serial Port" on this website, and I find the article about my problem. That article is "Serial Communication in Windows", posted by Ashish Dhar. I tried to use it, but I can't succeed !
So, please kindly show me how to trap create an independent thread to achieve my purpose.
Please don't ignore my question because this is my final project for graduating from my university ...
Please help me !!! My project's deadline is coming .... I really need that code ...
Thank you very much !!!
Best regards,

Quang Dien
Email to me at : quangdien12jan@yahoo.com
AnswerRe: How to create an independent thread for reading data from buffer of Serial Port ??? Pin
Anilkumar K V5-Jan-06 17:14
Anilkumar K V5-Jan-06 17:14 
QuestionQuick ideas for activation Pin
Alex Korchemniy5-Jan-06 14:57
Alex Korchemniy5-Jan-06 14:57 
AnswerRe: Quick ideas for activation Pin
TheGreatAndPowerfulOz5-Jan-06 20:20
TheGreatAndPowerfulOz5-Jan-06 20:20 
GeneralRe: Quick ideas for activation Pin
Sebastian Schneider5-Jan-06 20:37
Sebastian Schneider5-Jan-06 20:37 
AnswerRe: Quick ideas for activation Pin
TheGreatAndPowerfulOz5-Jan-06 20:33
TheGreatAndPowerfulOz5-Jan-06 20:33 
GeneralRe: Quick ideas for activation Pin
Alex Korchemniy6-Jan-06 7:32
Alex Korchemniy6-Jan-06 7:32 
Questionresolve crossed-bounds text Pin
s o v a n n5-Jan-06 14:51
s o v a n n5-Jan-06 14:51 
QuestionRetrofitting an MFC app to ActiveX Pin
Graham Reeds5-Jan-06 12:57
Graham Reeds5-Jan-06 12:57 
AnswerRe: Retrofitting an MFC app to ActiveX Pin
John R. Shaw5-Jan-06 13:20
John R. Shaw5-Jan-06 13:20 
GeneralRe: Retrofitting an MFC app to ActiveX Pin
Graham Reeds5-Jan-06 13:27
Graham Reeds5-Jan-06 13:27 
GeneralRe: Retrofitting an MFC app to ActiveX Pin
John R. Shaw6-Jan-06 17:17
John R. Shaw6-Jan-06 17:17 
Questionstl list<>::iterator for derived classes ?!? Pin
tbrake5-Jan-06 11:49
tbrake5-Jan-06 11:49 
AnswerRe: stl list<>::iterator for derived classes ?!? Pin
Christian Graus5-Jan-06 11:58
protectorChristian Graus5-Jan-06 11:58 
GeneralRe: stl list::iterator for derived classes ?!? Pin
tbrake5-Jan-06 12:08
tbrake5-Jan-06 12:08 
GeneralRe: stl list::iterator for derived classes ?!? Pin
Christian Graus5-Jan-06 12:11
protectorChristian Graus5-Jan-06 12:11 
QuestionRe: stl list::iterator for derived classes ?!? Pin
tbrake5-Jan-06 12:29
tbrake5-Jan-06 12:29 
AnswerRe: stl list::iterator for derived classes ?!? Pin
Christian Graus5-Jan-06 12:32
protectorChristian Graus5-Jan-06 12:32 

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.