running c++ exe file in background

hey friends, can you help me in my program?
i have made a program. i want to run its executable file as a background process without showing any console or without in the taskbar. simply i want it as a background process and will do what the program is written for.
1
2
3
4
5
6
7
#include<cstdlib>
using namespace std;
int main(){
    system("notepad.exe");// write full path of your exe file

return 0;
}
Do not link to console subsystem. How to do that is differs on different compilers.
This might help: http://stackoverflow.com/a/9619254
Topic archived. No new replies allowed.