Hi there. Let me display my code first:
void RunExtFile(char filelocation) {
int system(filelocation);
}
Basically, I am trying to create a function RunExtFile(), everytime I put this in my code, it should be able to shell or execute a command. EG:
RunExtFile("C:\\Email.exe");
and it will launch email.exe. How can I get it to work? What am I doing wrong? Is there something else I can use to shell a program?
I am using Visual c++ 6.0 on windows 98 SE.
JD