-
using cammand line
I'm not sure what it is called, but I want to make a c++ app that uses comand line stuff.
Like from the program I can put a command line prompt thing and it will do it.
That is a horible explanation I know, but I just need to be ponited in the right direction.
-
-
hrmm umm let me re explain.
Oh this is hard to explain, like the windows comand promt, but in my own app.
-
You think on, for example, you have Application window, and you want your own command prompt in it?
-
Something like this?
-> See attachment.
it is from atomic tanks -> http://atanks.sourceforge.net/
Download source code and find the console.
-
alright I think somtin like that, somthing were you type in:
createexe file exe -o
and than that for say creates an exe from file with the name exe (just somtin random I made up)
-
you are talking about command line arguements,
which is what "81N4RY_DR460N" had posted in his
first message.
it would let you get commands from the command line
such as :
createtxt.exe -filename "file.txt"
Code:
#include <iostream>
using namespace std;
int main ( int argc, char *argv[] )
{
cout << argv[0] << endl << endl;
cout << argv[1] << endl << endl;
cout << argv[2] << endl << endl;
cin.get();
return 0;
}
-
ok ok I think i see now. I was just thinking somthing different, thanks.
-