I've used ShowWindow() with SW_HIDE to hide my console program, but a visible window briefly pops up when the program first starts. I've tried configuring /SUBSYSTEM:WINDOWS and /ENTRY:mainCRTStartup (actually makes the console window hang for much longer).. also tried using WinMain() instead of main(). I'm not interested in making the process run as system or ring0.
I can do this with DirectX but most def don't want to go that route with this program. Is there any way around this pointless window popping up at startup?
I'm using VC++ 2010.
subsystem windows entry point maincrtstartup winmain , yes yes. It wont create a console thought but you can allocate it at runtime and hide it like Bingocat4 shown you. Or simply use a file for you outputs.