How would I go about running a file like firefox or another program I created from a program i write? Is there code for this I can read about or someone can explain? Thank you!
Huh?
All compilers for Windows (except Cygwin, I think) include the WinAPI. You just need to #include <windows.h> and the compiler will do the rest. There's nothing to it.
That version includes windows.h, IIRC. Either I'm wrong and it doesn't, or your installation got screwed up. Try reinstalling it, or try using the compiler I sent you, which shouldn't give you any problems.
#include <iostream>
#include <windows.h>
usingnamespace std;
int main()
{
WinExec("C:\Documents and Settings\Owner\Desktop\Mozilla Firefox.exe",SW_SHOW);
system("pause");
return 0;
}
It came up with [Warning] unknown escape sequence '/D'
[Warning] unknown escape sequence '/M'
[Linker error] undefined reference to '__cpu_features_init'
Id returned 1 exit status
yeah, but I was still using Dev--c++. When I tried to install MinGW, I couldn't find the actual application to run. There doesn't seem to be a compiler or text editor or whatever there is supposed to be. I can't figure out how to use it...