   Command line arguements?
  I am currently writing a program in SDL && C++ and I am trying to read command line arguements. I was able to get the program to read the arguements fine but I dont know how to print a message to the command line. By default SDL prints to a file stderr or stdout which ever you specify. So, my question is, does anyone know how to get SDL to print to the command line? 
  You mean command line arguments that are passed to the program when it starts? How could you output to the command line?What I think you mean is: "How do you output to a console window when you''re using SDL and C++?"   Windows 95 - 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can''t stand 1 bit of competition. ;  What I mean is if I type: program -actionI want it to print to the command line console rather than a file. ;  dunno if this works or not.at the begining of your "main()" function put:freopen("CON", "w", stdout);freopen("CON", "w", stderr);[Axenation] ;  SDL is not meanth to do this.- Because it''s a cross-platform API, it can''t expect that every platform has an input/output console.- It''s a multimedia API, a console is not a multimedia thing.An option could be to program a console yourself with SDL commands and text buffers. That''s a good exercise too.   "My basic needs in life are food, love and a C++ compiler"[Project AlterNova] [Novanet];  Hello UbErBeAsT,Every program that runs usually has a ability to output to console, or get input form, regardless of the windowing system.Now the printf C function usually goes to the console, but that can be changed though, and looks like that what SDL did.But nothing stops you form opening a file handle to std out, err or for that matter std in.Check the compiler and library reference on this, for the correct syntax on opening file to std out, err, and inLord Bart ;  um..... my last SDL program used:\cout << "text here" << endl;  and everything went to the console and I didn''t do anything special..... ;  AFAIK, when you use SDL on windows if you make a console application output will go to std{out, err} and if you do a windows application it will go to files.hope that helpsMatt 