Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: list control Pin
FarPointer10-Jul-06 4:23
FarPointer10-Jul-06 4:23 
GeneralRe: list control Pin
jokefake10-Jul-06 5:49
jokefake10-Jul-06 5:49 
QuestionWIN32 and MFC FAQ's Pin
Abhi Lahare10-Jul-06 3:39
Abhi Lahare10-Jul-06 3:39 
AnswerRe: WIN32 and MFC FAQ's Pin
Sarath C10-Jul-06 4:13
Sarath C10-Jul-06 4:13 
AnswerRe: WIN32 and MFC FAQ's Pin
Jun Du10-Jul-06 4:32
Jun Du10-Jul-06 4:32 
AnswerRe: WIN32 and MFC FAQ's Pin
earl10-Jul-06 5:26
earl10-Jul-06 5:26 
AnswerRe: WIN32 and MFC FAQ's Pin
Joe Woodbury10-Jul-06 8:30
professionalJoe Woodbury10-Jul-06 8:30 
Questionpipe to istream Pin
khb10-Jul-06 3:27
khb10-Jul-06 3:27 
Hi together,

I need some help. I'm having some old VC6 code which works fine:
FILE* pipe = _popen("MyPipe", "r"); 
streambuf* buf = new stdiobuf(pipe);
istream in(buf);
However, I have to get it run in VS2005 where it doesn't compile. For example, the function stdiobuf() doesn't exist any more Mad | :mad:

As far as I understand it: The new template-based stream functions can't handle file descriptors any more.

So, here's my question: How can I get data from a pipe to an istream object? I need it this way, because the rest of the old code works on istreams.

Rose | [Rose] Thank you very much for your help in advance!

Regards,
Marcus.
QuestionHelp!! Pin
Smith#10-Jul-06 3:05
Smith#10-Jul-06 3:05 
AnswerRe: Help!! Pin
David Crow10-Jul-06 3:07
David Crow10-Jul-06 3:07 
QuestionOT Pin
Smith#10-Jul-06 3:19
Smith#10-Jul-06 3:19 
AnswerRe: OT Pin
David Crow10-Jul-06 3:30
David Crow10-Jul-06 3:30 
GeneralRe: OT Pin
Smith#10-Jul-06 3:54
Smith#10-Jul-06 3:54 
GeneralRe: OT [modified] Pin
earl10-Jul-06 4:29
earl10-Jul-06 4:29 
QuestionDoubt in VC++ hooks [modified] Pin
Javagal Srinath10-Jul-06 3:00
Javagal Srinath10-Jul-06 3:00 
AnswerRe: Doubt in VC++ hooks Pin
Abhi Lahare10-Jul-06 3:36
Abhi Lahare10-Jul-06 3:36 
AnswerRe: Doubt in VC++ hooks Pin
FarPointer10-Jul-06 3:43
FarPointer10-Jul-06 3:43 
AnswerRe: Doubt in VC++ hooks Pin
HakunaMatada10-Jul-06 3:58
HakunaMatada10-Jul-06 3:58 
Questionmappoint Pin
nahitan10-Jul-06 2:46
nahitan10-Jul-06 2:46 
AnswerRe: mappoint Pin
earl10-Jul-06 4:35
earl10-Jul-06 4:35 
QuestionRestoring Window - Help. Pin
Programm3r10-Jul-06 2:45
Programm3r10-Jul-06 2:45 
QuestionRe: Restoring Window - Help. Pin
David Crow10-Jul-06 2:51
David Crow10-Jul-06 2:51 
GeneralRe: Restoring Window - Help. Pin
Programm3r10-Jul-06 2:57
Programm3r10-Jul-06 2:57 
GeneralRe: Restoring Window - Help. Pin
Programm3r10-Jul-06 3:00
Programm3r10-Jul-06 3:00 
QuestionRe: Restoring Window - Help. Pin
David Crow10-Jul-06 3:05
David Crow10-Jul-06 3:05 

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.