Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > fp - don't clos...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 684 of 814
Post > Topic >>

fp - don't close console-window at termination

by "Ulrich Diez" <eu_angelion@[EMAIL PROTECTED] > Oct 22, 2006 at 04:36 PM

(*FP-default: {$APPTYPE console}*)
program hello;
begin
  writeln('Hello World');
end.

When compiling the hello-Program with FreePascal for
Windows 9.x-platform, you get a native Windows-console-application.

When compiling the Hello-Program with BP 7, you get a native
DOS-console-application.

When running the Windows-console-application from within
Win95 GUI (e.g. via double-clicking in Explorer, not by
calling it from the command-prompt), the application's
window does get closed as soon as the application terminates.
You have almost no chance to read the output-text.

When running the DOS-console-application from within
Win95 GUI, the application's window usually does not
get closed. Instead if you press a key or the like,
Windows issues a message, informing you about the fact
that the DOS application is terminated and that you may
click the "close window"-button.

Is there some compiler-directive or the like for FreePascal
so that windows of win-console-applications do not get
closed right after applications' termination?

Many thanks

Ulrich
 




 2 Posts in Topic:
fp - don't close console-window at termination
"Ulrich Diez" &  2006-10-22 16:36:01 
Re: fp - don't close console-window at termination
Marco van de Voort <ma  2006-10-22 16:44:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 6:49:06 CDT 2008.