Board index » delphi » TP in WinME

TP in WinME

This has probably been covered before but i don't have the whole newsgroup
on disk.

TP runs fine, but when i compile a pas file and it creates an exe, once i
run the exe, as soon as the prog ends, the window dies.... Is there any way
around this other than opening command.com and calling the exe from there?

Also, at first, my pas files were compiling to memory. I managed to get them
to compile to exe's, but i have no idea how... any ideas?

TIA

--
Voldemort

"I need somebody with brains, somebody whose loyalty has never wavered, and
you, unfortunatedly, fulfill neither requirement."

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 18/09/2001

 

Re:TP in WinME


Quote
"Pneumatus?" <Pneuma...@NOSPAMlineone.net> wrote in message

news:9ood1u$22q$1@plutonium.btinternet.com...
Quote
> TP runs fine, but when i compile a pas file and it creates an exe, once
i
> run the exe, as soon as the prog ends, the window dies.... Is there any
way
> around this other than opening command.com and calling the exe from

there?

You can run the program directly from the IDE in most cases; this will
return you to the IDE when the program ends. Otherwise, you need to
run it separately from the command line; if you just run the executable
from Windows, the program window will become inactive when your program
ends.

Quote
> Also, at first, my pas files were compiling to memory. I managed to get
them
> to compile to exe's, but i have no idea how... any ideas?

Under the "Compile" menu, there is a command "Destination" which lets
you switch between compiling to memory or to disk.

--
The Scarlet Manuka

Re:TP in WinME


Quote
"Pneumatus?" <Pneuma...@NOSPAMlineone.net> wrote in message

news:9ood1u$22q$1@plutonium.btinternet.com...
Quote
> TP runs fine, but when i compile a pas file and it creates an exe, once i
> run the exe, as soon as the prog ends, the window dies.... Is there any way
> around this other than opening command.com and calling the exe from there?

I have yet to get an answer on this too.

I can give you the advice I usually get:

Put this at the end of your program, it'll wait until
the user presses a key.

var ch;

repeat ch:=Readkey until not keypressed;

Re:TP in WinME


Quote
"Pneumatus?" <Pneuma...@NOSPAMlineone.net> wrote:

> This has probably been covered before but i don't have the whole newsgroup
> on disk.

> TP runs fine, but when i compile a pas file and it creates an exe, once i
> run the exe, as soon as the prog ends, the window dies.... Is there any way
> around this other than opening command.com and calling the exe from there?

I don't know if it is the with WinME, but the following works with Win95:

Start Explorer and find the program.
Right click on the program.
Select "Settings" (in Win95 it is the last menu).
On the page with the program name (probably named "Program"), you can change if
the window should close automatically.

I can't give you the exact text to look for, as I am using a danish version of
Win95.

I hope this helps.

Regards, Ren
--
Using Virtual Access
http://www.vamail.com

Other Threads