Click here to Skip to main content
15,889,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to abort forcefully shutdown, reastart or logoff Pin
David Crow6-May-09 3:11
David Crow6-May-09 3:11 
GeneralRe: How to abort forcefully shutdown, reastart or logoff Pin
Stuart Dootson6-May-09 3:21
professionalStuart Dootson6-May-09 3:21 
QuestionMFC application has encountered a problem and need to close Pin
ganesh.dp5-May-09 20:07
ganesh.dp5-May-09 20:07 
AnswerRe: MFC application has encountered a problem and need to close Pin
Cedric Moonen5-May-09 20:29
Cedric Moonen5-May-09 20:29 
AnswerRe: MFC application has encountered a problem and need to close Pin
_AnsHUMAN_ 5-May-09 21:38
_AnsHUMAN_ 5-May-09 21:38 
AnswerRe: MFC application has encountered a problem and need to close Pin
ThatsAlok5-May-09 23:20
ThatsAlok5-May-09 23:20 
AnswerRe: MFC application has encountered a problem and need to close Pin
Hamid_RT5-May-09 23:28
Hamid_RT5-May-09 23:28 
GeneralRe: MFC application has encountered a problem and need to close Pin
ganesh.dp5-May-09 23:36
ganesh.dp5-May-09 23:36 
AnswerRe: MFC application has encountered a problem and need to close Pin
David Crow6-May-09 3:14
David Crow6-May-09 3:14 
QuestionPartial Specialization of Templated Class Member Function Pin
Jmuulian5-May-09 19:26
Jmuulian5-May-09 19:26 
AnswerRe: Partial Specialization of Templated Class Member Function Pin
«_Superman_»5-May-09 20:04
professional«_Superman_»5-May-09 20:04 
AnswerRe: Partial Specialization of Templated Class Member Function Pin
Stuart Dootson6-May-09 2:14
professionalStuart Dootson6-May-09 2:14 
QuestionOpening a Visual Studio .NET application in Visual Studio C++ Pin
SivaGK5-May-09 19:26
SivaGK5-May-09 19:26 
AnswerRe: Opening a Visual Studio .NET application in Visual Studio C++ Pin
«_Superman_»5-May-09 19:29
professional«_Superman_»5-May-09 19:29 
AnswerRe: Opening a Visual Studio .NET application in Visual Studio C++ Pin
_AnsHUMAN_ 5-May-09 19:47
_AnsHUMAN_ 5-May-09 19:47 
QuestionOne doubt Pin
Deepu Antony5-May-09 19:12
Deepu Antony5-May-09 19:12 
AnswerRe: One doubt Pin
«_Superman_»5-May-09 19:27
professional«_Superman_»5-May-09 19:27 
GeneralRe: One doubt Pin
Deepu Antony5-May-09 19:47
Deepu Antony5-May-09 19:47 
GeneralRe: One doubt Pin
«_Superman_»5-May-09 19:53
professional«_Superman_»5-May-09 19:53 
Open the port with the overlapped flag.
CreateFile(_T("COM1"), GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);

Post the asynchronous read.
OVERLAPPED over = { 0 };
over.hEvent = ::CreateEvent(0, 0, 0, 0);
DWORD dwRead = 0;
ReadFile(m_hPort, buffer, len, &dwRead, &over);

Wait on the event for 3 seconds.
if (WAIT_OBJECT_0 != WaitForSingleObject(over.hEvent, 3000))
    return;
GetOverlappedResult(m_hPort, &over, &dwReade, 0);


«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: One doubt Pin
Deepu Antony5-May-09 20:11
Deepu Antony5-May-09 20:11 
AnswerRe: One doubt Pin
Taran95-May-09 21:35
Taran95-May-09 21:35 
AnswerRe: One doubt Pin
KarstenK5-May-09 23:16
mveKarstenK5-May-09 23:16 
AnswerRe: One doubt Pin
Stuart Dootson6-May-09 2:16
professionalStuart Dootson6-May-09 2:16 
AnswerRe: One doubt Pin
David Crow6-May-09 3:15
David Crow6-May-09 3:15 
Questionin CExplorer1 class, how to post your form data to the server,as login data. Pin
cwj_5-May-09 16:20
cwj_5-May-09 16:20 

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.