steve steve at
Wed May 28 02:35:03 PDT 2008

why does this code snippet refuse to work under D : ?

lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen( hConHandle, "w" );

the last line wont give a result but null ? is there something to note when translating this to D ?

Thanks for any hints!

More information about the Digitalmars-d-learn mailing list