Click here to Skip to main content
15,906,285 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: trouble with calculations Pin
lindag178313-May-06 21:29
lindag178313-May-06 21:29 
GeneralRe: trouble with calculations Pin
Justin Tay13-May-06 23:59
Justin Tay13-May-06 23:59 
GeneralRe: trouble with calculations Pin
lindag178314-May-06 0:46
lindag178314-May-06 0:46 
GeneralRe: trouble with calculations Pin
Saurabh.Garg14-May-06 15:04
Saurabh.Garg14-May-06 15:04 
Questionmysql database Pin
J512198213-May-06 2:13
J512198213-May-06 2:13 
AnswerRe: mysql database Pin
Hamid_RT13-May-06 3:58
Hamid_RT13-May-06 3:58 
AnswerRe: mysql database Pin
Kleser13-May-06 4:56
Kleser13-May-06 4:56 
Questiongetstdhandle returns INVALID_HANDLE_VALUE Pin
e_prabhu13-May-06 2:02
e_prabhu13-May-06 2:02 
Hi,
Question 1:
-----------
The GetStdHandle() API is returning INVALID_HANDLE_VALUE.
When does this API returns INVALID_HANDLE_VALUE. When GetLastError is called it returns 6 (The handle is invalid).
Is there any condition in which this API return INVALID_HANDLE_VALUE.

Question 2:
-----------
With Reference to MSDN under the topic pipes/Anonymous Pipe/Pipe Handle Inheritance
The following are the steps mentioned for redirecting the standard output handle to the child process
1.Call the GetStdHandle function to get the current standard output handle
2.Call the SetStdHandle function to set the standard output handle to the write handle to the pipe.
3.Create the child process
4.Call the CloseHandle function to close the write handle to the pipe.
5.Call SetStdHandle to restore the original standard output handle

The Question is whether there will be any impact in the parent process when the restoring of the original handle is not done.

Thanks in advance.

AnswerRe: getstdhandle returns INVALID_HANDLE_VALUE Pin
Hamid_RT13-May-06 5:01
Hamid_RT13-May-06 5:01 
AnswerRe: getstdhandle returns INVALID_HANDLE_VALUE Pin
Ryan Binns13-May-06 22:21
Ryan Binns13-May-06 22:21 
QuestionError in List Box Pin
Anu_Bala13-May-06 1:57
Anu_Bala13-May-06 1:57 
AnswerRe: Error in List Box Pin
Hamid_RT13-May-06 3:32
Hamid_RT13-May-06 3:32 
QuestionCustom media player Pin
anupam113-May-06 0:54
anupam113-May-06 0:54 
AnswerRe: Custom media player Pin
Justin Tay13-May-06 3:02
Justin Tay13-May-06 3:02 
AnswerRe: Custom media player Pin
Hamid_RT13-May-06 3:17
Hamid_RT13-May-06 3:17 
GeneralRe: Custom media player Pin
ThatsAlok13-May-06 4:16
ThatsAlok13-May-06 4:16 
GeneralRe: Custom media player Pin
Hamid_RT13-May-06 4:30
Hamid_RT13-May-06 4:30 
GeneralRe: Custom media player Pin
ThatsAlok14-May-06 22:26
ThatsAlok14-May-06 22:26 
GeneralRe: Custom media player Pin
Hamid_RT15-May-06 3:52
Hamid_RT15-May-06 3:52 
QuestionOpenSSl Pin
Girish60113-May-06 0:53
Girish60113-May-06 0:53 
QuestionApplication Pin
Lord_Vader13-May-06 0:47
Lord_Vader13-May-06 0:47 
AnswerRe: Application Pin
ThatsAlok13-May-06 4:17
ThatsAlok13-May-06 4:17 
AnswerRe: Application Pin
Kleser13-May-06 5:01
Kleser13-May-06 5:01 
AnswerRe: Application Pin
Ryan Binns13-May-06 22:25
Ryan Binns13-May-06 22:25 
QuestionNo reaction from CancelToClose() Pin
Haakon S.13-May-06 0:06
Haakon S.13-May-06 0:06 

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.