Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Popup in Pascal or C

Posted on 2003-03-09
Medium Priority
Last Modified: 2006-11-17
Well, when i do a program in Pascal or C it always pops up a command prompt windows and then dissapers.

I want that that windows doesn´t appear, that the program runs in the background. I know that this is possible, just don´t know how.

All the awsers are welcome and apreciated.
Thaks a lot.

P.S: I prefer that the awser could be in Pascal, but if it´s not possible then in C.
Question by:Gfsd

Accepted Solution

mocarts earned 100 total points
ID: 8111696
if you won't show any output to user, then create windows exe (don't include APPTYPE CONSOLE compiler directive), but without main window.
example from delphi:

program Project2;

  Windows, Dialogs;

  ShowMessage('I''m here!');

wbr, mo.
p.s. you can set shortcut's property to Run: Minimized, but I'm sure you don't want this solution :)

Author Comment

ID: 8123115
thks a lot

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question