why does this code snippet refuse to work under D : http://www.halcyon.com/~ast/dload/guicon.htm ? 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!