Click here to Skip to main content
15,893,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: problems about Template using Pin
Eytukan3-Mar-09 6:57
Eytukan3-Mar-09 6:57 
JokeRe: problems about Template using Pin
Stuart Dootson3-Mar-09 8:07
professionalStuart Dootson3-Mar-09 8:07 
JokeRe: problems about Template using Pin
Eytukan3-Mar-09 17:18
Eytukan3-Mar-09 17:18 
GeneralRe: problems about Template using Pin
CPallini3-Mar-09 22:46
mveCPallini3-Mar-09 22:46 
GeneralRe: problems about Template using Pin
CPallini3-Mar-09 22:45
mveCPallini3-Mar-09 22:45 
QuestionShared pointer in VS2008 Pin
vibindia3-Mar-09 3:51
vibindia3-Mar-09 3:51 
AnswerRe: Shared pointer in VS2008 Pin
Stuart Dootson3-Mar-09 3:57
professionalStuart Dootson3-Mar-09 3:57 
QuestionWaitCommEvent Pin
komofilms773-Mar-09 3:05
komofilms773-Mar-09 3:05 
Hello I want to read from com port1, and I used API

if (WaitCommEvent(hSerial, &dwCommEvent,NULL))
{
if (dwCommEvent & EV_RXCHAR)
{
DWORD dwNumberBytesRead;
if(ReadFile(hSerial, chRead, sizeof(chRead),&dwNumberBytesRead,&osReader))

I have got an extra Thread to read com port but if data is not send to port my program hangs up.
Is there any way to check if input buffer is changed and then ReadFile instead waiting for
WaitCommEvent ??, or if there is some other ways?

Thanks in advace
AnswerRe: WaitCommEvent Pin
David Crow3-Mar-09 3:21
David Crow3-Mar-09 3:21 
AnswerRe: WaitCommEvent Pin
Stuart Dootson3-Mar-09 4:07
professionalStuart Dootson3-Mar-09 4:07 
Questionconvert cstring to LPBYTE Pin
amit.code3-Mar-09 2:58
amit.code3-Mar-09 2:58 
AnswerRe: convert cstring to LPBYTE Pin
Cedric Moonen3-Mar-09 3:02
Cedric Moonen3-Mar-09 3:02 
GeneralRe: convert cstring to LPBYTE Pin
amit.code3-Mar-09 3:08
amit.code3-Mar-09 3:08 
AnswerRe: convert cstring to LPBYTE Pin
David Crow3-Mar-09 3:05
David Crow3-Mar-09 3:05 
GeneralRe: convert cstring to LPBYTE Pin
amit.code3-Mar-09 3:12
amit.code3-Mar-09 3:12 
AnswerRe: convert cstring to LPBYTE Pin
Code-o-mat3-Mar-09 3:29
Code-o-mat3-Mar-09 3:29 
GeneralRe: convert cstring to LPBYTE Pin
amit.code3-Mar-09 3:44
amit.code3-Mar-09 3:44 
GeneralRe: convert cstring to LPBYTE Pin
Code-o-mat3-Mar-09 3:50
Code-o-mat3-Mar-09 3:50 
AnswerRe: convert cstring to LPBYTE Pin
«_Superman_»3-Mar-09 16:18
professional«_Superman_»3-Mar-09 16:18 
GeneralRe: convert cstring to LPBYTE Pin
amit.code4-Mar-09 1:47
amit.code4-Mar-09 1:47 
GeneralRe: convert cstring to LPBYTE Pin
Destiny77711-Aug-10 14:23
Destiny77711-Aug-10 14:23 
QuestionHow to Convert my project from VC++ 6.0 to VC++.NET Pin
manoharbalu3-Mar-09 0:01
manoharbalu3-Mar-09 0:01 
AnswerRe: How to Convert my project from VC++ 6.0 to VC++.NET Pin
Eytukan3-Mar-09 0:29
Eytukan3-Mar-09 0:29 
AnswerRe: How to Convert my project from VC++ 6.0 to VC++.NET Pin
Maximilien3-Mar-09 0:49
Maximilien3-Mar-09 0:49 
GeneralRe: How to Convert my project from VC++ 6.0 to VC++.NET Pin
manoharbalu3-Mar-09 18:08
manoharbalu3-Mar-09 18:08 

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.