I want to write one c++ program, compiling and linking .cpp gives .exe file. if i double click on that and execute it a console gets opened and closed. I don\'t want that consol
Weaker preconditions:
If your program does not have console child processes, simply FreeConsole(); should do it.
FreeConsole();
Else
a (hidden) window is required in order to not have console popups from child processes, i.e. as mentioned above
ShowWindow (GetConsoleWindow(), SW_HIDE);