Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <windows.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
Sleep( 2000 );
HWND hw = FindWindow( "ConsoleWindowClass", "C:\\projects\\hidden\\release\\hidden.exe" );
ShowWindow( hw, SW_HIDE );
Sleep( 2000 );
ShowWindow( hw, SW_SHOW );
Sleep( 2000 );
return 0;
}
HWND hw = FindWindow( "ConsoleWindowClass", "C:\\projects\\hidden\\release\\hidden.exe" );
ShowWindow( hw, SW_HIDE );
Exo said:It means you can't hide your program. You need a window handle for that, wich is only given to real windows applications, console applications have no handle.
The easyest and quickest way to write a windows program is by using MFC.