RedirectIOToConsole
Extrawurst
spam at extrawurst.org
Wed May 28 15:40:39 PDT 2008
Extrawurst schrieb:
> this wont work, either. i had the same problem. for a reason i dont
> understand _fdopen( or fdopen like it is called in D) always returns a
> null-pointer. in this case all u have to to is to create a _iobuf
> instance yourself and set the _flag property to 2 (for "w" access) and
> the _file property to hConHandle. thats pretty much everything that
> _fdopen does in this case and it works.
here is the version that works for me ;)
http://paste.dprogramming.com/dpy9mgr9
More information about the Digitalmars-d-learn
mailing list