Hello,
Does anyone know how to get Visual C++ 6.0 to compile, link, and run a straight C++ program that runs from the command line? When I try to run a simple C++ program using WinMain(), I can't get input from or output to a DOS box using cout, cin, printf and scanf. From what I've been able to gather, when linked with the QuickWin library these input/output functions are assigned to special windows because they are connected to the predefined files stdin, stdout and stderr.
However, when I try to comment out including 'windows.h' I get errors, whether I try to use WinMain() or main().
Help! I just want a simple C++ program that runs from a DOS box and does input and output from the DOS box!
Thanks,
Tim
Does anyone know how to get Visual C++ 6.0 to compile, link, and run a straight C++ program that runs from the command line? When I try to run a simple C++ program using WinMain(), I can't get input from or output to a DOS box using cout, cin, printf and scanf. From what I've been able to gather, when linked with the QuickWin library these input/output functions are assigned to special windows because they are connected to the predefined files stdin, stdout and stderr.
However, when I try to comment out including 'windows.h' I get errors, whether I try to use WinMain() or main().
Help! I just want a simple C++ program that runs from a DOS box and does input and output from the DOS box!
Thanks,
Tim