make Win32 Console into background app
I've written a program in C in Visual C++ 2008. Basically the program read a txt file (located on the same folder of exe) and transfer the data in it to MySQL server. Right know I've only make it run once,later I intend to put it in a while loop.
I want to make this program runs in the background.From google I've found for example about using Windows Service,WinMain(),freeconsole(),etc...
I'm not sure about Windows Service bcos i'm afraid i'll messing around with register and stuff.
Is there any simpler way?
I'll use this program on XP or Vista.I hope it doesn't take much memory.My program doesn't require any input from keyboard(user).