: : I use Visual C++ 6.0.
: : I've got two problems.
: : First I want to start an Exe File when klicking a Button in my Application. What do I have to write into the BnClicked Funktion?
: :
:
In the resource editor, just double-click the button. ClassWizzard will create a function for you.
:
: : Second I want to delete a Text file, which I have accessed with:
: :
: : ifstream fin("info");
: : char str(80);
: : int i;
: : fin>>str>>i;
: : MessageBox(str+" "+i);
: : fin.close();
: :
: : So after reading the Data out of the File, I want to delete it. What is the easiest way to do this.
: :
: :
: : PS.: Please keep it simple since I'm a Newbie in C++ programming and the programm mustn't be absolut professional.
: :
:
: remove("filename");
:
:
:
also for the line
char str(80);
it should be restated to
char str[80];
or
char *str = new char[80];
seing that an arry is defined by [] brackets
TFKyle