Is there any way to hide the command line window where the program runs on? I got a little program and I want to it to go hidden if user writes hide. Is there any way?
Silvershaft
2
Junior Poster
Recommended Answers
Jump to Post#include <windows.h> int main() { HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_HIDE); }
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Excizted
commented:
Useful!
+1
pspwxp fan
commented:
do u have such an easy solution 2 everything?
+1
Silvershaft
2
Junior Poster
Excizted
67
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.