Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
.exe Posted by sweeney on 4 Mar 2003 at 1:44 PM
how can you do a program that will run as a .exe or something so it can work in different computers??
Report
Re: .exe Posted by UltimateEnd on 4 Mar 2003 at 2:34 PM
when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
Report
Re: .exe Posted by Opius on 4 Mar 2003 at 4:31 PM
: when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
:
Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
Report
Re: .exe Posted by sweeney on 4 Mar 2003 at 5:26 PM
: : when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
: :
: Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
:
I have an old TP I have tryed saveing it as a .exe and it dose come out as an ordanary dos file but when I try it on a different computer it dosent work!
Report
Re: .exe Posted by Phat Nat on 4 Mar 2003 at 5:57 PM
: : : when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
: : :
: : Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
: :
: I have an old TP I have tryed saveing it as a .exe and it dose come out as an ordanary dos file but when I try it on a different computer it dosent work!
:

You can't just save it as a .EXE file. It will still save it as a Pascal file, but with a .EXE extension. In TP5.5, load your program, then under the COMPILE menu, select DESTINATION (=DISK). Now, when you run your program or select COMPILE->MAKE (F9 key) it will write the .EXE file to the current directory.

So, if you load your program, FILENAME.PAS and then select COMPILE -> DESTINATION=DISK. When you hit F9, FILENAME.EXE will be created.

TTYL,
Phat Nat

Report
Re: .exe Posted by sweeney on 5 Mar 2003 at 3:39 PM
: : : : when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
: : : :
: : : Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
: : :
: : I have an old TP I have tryed saveing it as a .exe and it dose come out as an ordanary dos file but when I try it on a different computer it dosent work!
: :
:
: You can't just save it as a .EXE file. It will still save it as a Pascal file, but with a .EXE extension. In TP5.5, load your program, then under the COMPILE menu, select DESTINATION (=DISK). Now, when you run your program or select COMPILE->MAKE (F9 key) it will write the .EXE file to the current directory.
:
: So, if you load your program, FILENAME.PAS and then select COMPILE -> DESTINATION=DISK. When you hit F9, FILENAME.EXE will be created.
:
: TTYL,
: Phat Nat
:
:
thanks that worked! but another problem lol its a small screen and I want it to be a big screen! how can I change the size of the wondow??
Report
Re: .exe Posted by Opius on 5 Mar 2003 at 3:48 PM
: : : : : when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
: : : : :
: : : : Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
: : : :
: : : I have an old TP I have tryed saveing it as a .exe and it dose come out as an ordanary dos file but when I try it on a different computer it dosent work!
: : :
: :
: : You can't just save it as a .EXE file. It will still save it as a Pascal file, but with a .EXE extension. In TP5.5, load your program, then under the COMPILE menu, select DESTINATION (=DISK). Now, when you run your program or select COMPILE->MAKE (F9 key) it will write the .EXE file to the current directory.
: :
: : So, if you load your program, FILENAME.PAS and then select COMPILE -> DESTINATION=DISK. When you hit F9, FILENAME.EXE will be created.
: :
: : TTYL,
: : Phat Nat
: :
: :
: thanks that worked! but another problem lol its a small screen and I want it to be a big screen! how can I change the size of the wondow??
:
while its running type Alt+Enter to change it to fullscreen mode, otherwhise you can't change the size of an MS-DOS window
-Opius
Report
Re: .exe Posted by sweeney on 5 Mar 2003 at 4:47 PM
: : : : : : when you compile the program, a .exe is automatically saved into the same folder as the source file, and it has the same name too! it can be run on any computer, and it doesn't need the source code with it.
: : : : : :
: : : : : Occasionally, one must change where the project is being compiled to. I know that in TP7, you have to change the comile from memory to disk to create an .exe file.
: : : : :
: : : : I have an old TP I have tryed saveing it as a .exe and it dose come out as an ordanary dos file but when I try it on a different computer it dosent work!
: : : :
: : :
: : : You can't just save it as a .EXE file. It will still save it as a Pascal file, but with a .EXE extension. In TP5.5, load your program, then under the COMPILE menu, select DESTINATION (=DISK). Now, when you run your program or select COMPILE->MAKE (F9 key) it will write the .EXE file to the current directory.
: : :
: : : So, if you load your program, FILENAME.PAS and then select COMPILE -> DESTINATION=DISK. When you hit F9, FILENAME.EXE will be created.
: : :
: : : TTYL,
: : : Phat Nat
: : :
: : :
: : thanks that worked! but another problem lol its a small screen and I want it to be a big screen! how can I change the size of the wondow??
: :
: while its running type Alt+Enter to change it to fullscreen mode, otherwhise you can't change the size of an MS-DOS window
: -Opius
:
thanks its got a repeat untill keypressed lol so I will need to take that out or it probly want work lol! thanks anyways!
Report
Re: .exe Posted by Phat Nat on 5 Mar 2003 at 5:58 PM
: : : thanks that worked! but another problem lol its a small screen and I want it to be a big screen! how can I change the size of the wondow??
: : :
: : while its running type Alt+Enter to change it to fullscreen mode, otherwhise you can't change the size of an MS-DOS window
: : -Opius
: :
: thanks its got a repeat untill keypressed lol so I will need to take that out or it probly want work lol! thanks anyways!

Nope. Windows will catch the keystroke before it gets to your program and your program will never see it.

Phat Nat



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.