Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows media player Pin
Trollslayer26-May-04 9:45
mentorTrollslayer26-May-04 9:45 
GeneralDate/Time Picker in CListCtrl Pin
aswdwdwd26-May-04 6:40
aswdwdwd26-May-04 6:40 
GeneralCSerialPort Class Problem and Error 87 Pin
AnotherProgrammer26-May-04 6:25
AnotherProgrammer26-May-04 6:25 
GeneralPS - sorry, here's the link to that other post... Pin
AnotherProgrammer26-May-04 6:29
AnotherProgrammer26-May-04 6:29 
GeneralNetwork Order cponversion Pin
Stan the man26-May-04 6:17
Stan the man26-May-04 6:17 
GeneralRe: Network Order cponversion Pin
Ryan Binns26-May-04 19:05
Ryan Binns26-May-04 19:05 
GeneralGrabbing standard out to a pipe Pin
Anonymous26-May-04 5:57
Anonymous26-May-04 5:57 
GeneralRe: Grabbing standard out to a pipe Pin
Antti Keskinen26-May-04 11:46
Antti Keskinen26-May-04 11:46 
As everything in Windows are represented by handles, you can use GetStdHandle and SetStdHandle to operate on the standard stream handles (file handles). Just use CreateFile to create and connect the pipe, then use SetStdHandle with appropriate parameters to redirect the standard stream into the pipe.

These functions will redirect the standard streams or get their handles for the current process only. So for all other processes, the streams remain normal. But it's good practise nevertheless to first use GetStdHandle, save it, and restore it back after you're done.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
Generalwaiting for something to finished Pin
pnpfriend26-May-04 5:47
pnpfriend26-May-04 5:47 
GeneralRe: waiting for something to finished Pin
valikac26-May-04 13:22
valikac26-May-04 13:22 
GeneralRe: waiting for something to finished Pin
pnpfriend27-May-04 8:50
pnpfriend27-May-04 8:50 
GeneralListView: XP - 2000 CPU usage Pin
Dan Hill26-May-04 5:35
Dan Hill26-May-04 5:35 
GeneralRe: ListView: XP - 2000 CPU usage Pin
Ryan Binns26-May-04 19:08
Ryan Binns26-May-04 19:08 
GeneralOCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:13
sweep12326-May-04 5:13 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:28
jmkhael26-May-04 5:28 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:40
sweep12326-May-04 5:40 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:42
jmkhael26-May-04 5:42 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:48
sweep12326-May-04 5:48 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:57
jmkhael26-May-04 5:57 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 6:09
sweep12326-May-04 6:09 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 6:20
sweep12326-May-04 6:20 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 7:05
jmkhael26-May-04 7:05 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 21:29
sweep12326-May-04 21:29 
GeneralDynamic compilation in c/c++ Pin
mooze26-May-04 4:48
mooze26-May-04 4:48 
GeneralRe: Dynamic compilation in c/c++ Pin
Navin26-May-04 6:42
Navin26-May-04 6:42 

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.