Horje
c++ cmd program run in background Code Example
c++ cmd program run in background
#include <windows.h>  
#include <iostream>     
using namespace std;


int main () {   
    cout<<"Some  information is displayed.. \n\n";
    Sleep(5000);

    cout<<"wait.. the console is going to hide and run in background.. \n";
    Sleep(5000);

    ShowWindow(FindWindowA("ConsoleWindowClass", NULL), false);

    while(true) {
                 // Do your hidden stuff in here
    }   
return 0;
}
how to run a c++ program in the background
HWND window;
AllocConsole();
window = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(window,0);




Cpp

Related
qt design editor hide window bottom white bar Code Example qt design editor hide window bottom white bar Code Example
leveling system c++ Code Example leveling system c++ Code Example
log base c++ Code Example log base c++ Code Example
screen record ios simulator Code Example screen record ios simulator Code Example
torch cuda is available Code Example torch cuda is available Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11