arman radan
arman radan

Reputation: 190

I want to make a program without any visual dialog

I have written a program that reads some information from a file and after processing it, writes it on another file.

However, I don't wanna to see any window appear on my monitor when I open my program, even for a moment. Is there any way to make it invisible?

Upvotes: 0

Views: 133

Answers (2)

Rango
Rango

Reputation: 1105

You can simply create a Win32 Application.

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
    // do whatever you want
    return 0;
}

Upvotes: 1

Christian Stieber
Christian Stieber

Reputation: 12496

If you're talking about Windows, then what exactly are you seeing? A console window popping up? That happens automatically if you run a console program via the desktop GUI, because a console program is supposed to have a console.

Simply make your application a GUI application... and don't create any windows.

Upvotes: 3

Related Questions