http://bugs.winehq.org/show_bug.cgi?id=7853
------- Additional Comments From wine.bug.fr.200703@edavies.nildram.co.uk 2007-30-03 17:40 ------- I tried modifying the test program (compiled under MSVC 1.52) to write some text to stdout using "_lwrite(1, ...)" but the output went to somewhere unknown (i.e., wasn't written anywhere I saw) both when I ran it in in the IDE and from a command prompt. I tried redirecting at the command prompt ("windirs > x") but the resulting "x" file was length zero. I added a dialog box to display the return from _lwrite which indicated a correct write (i.e., returned the correct string length) & it also failed properly (returned -1) which I changed the hFile from 1 to 21 so the handle at least made some sense. It's a while since I've written any Win 3.1 code but it was my impression that Win 3.1 Windows applications (as opposed to DOS applications) did not really have a stdout. If anybody else has any suggestions, please let me know.
Tomorrow I'll do a version of the program to write the results to a file named on the command line.