.exe files

Hi,

I'm writing a cardgame in Turbo Pascal 7.0 and I want to get hold of the .exe file. I can't find it in the Pascal directory. Where is it and how do I get hold of it? I've seen the .exe files for other programs I've written.

Also, can one run Turbo Pascal 7.0 programs on other computers that don't have the language installed, like copying the .exe file and running it on other computers?

Thanks

Comments

  • : Hi,
    :
    : I'm writing a cardgame in Turbo Pascal 7.0 and I want to get hold of the .exe file. I can't find it in the Pascal directory. Where is it and how do I get hold of it? I've seen the .exe files for other programs I've written.
    :
    : Also, can one run Turbo Pascal 7.0 programs on other computers that don't have the language installed, like copying the .exe file and running it on other computers?
    :
    : Thanks
    :


    Check what is the target. If you want to create an .EXE file
    target must be set to "Disk" (Run/Destination/Disk).

    You can give your programs to anybody and they will run fine.
    Programs that you create with TP rarely require additional files.
    Exceptions are for example fonts, BGI files etc.
    Simply create new directory and put your EXE in it.
    If it doesn't run some files are missing so just copy them
    too untill your program works. Zip everything and send it
    to your friends.


    Iby
  • : : Hi,
    : :
    : : I'm writing a cardgame in Turbo Pascal 7.0 and I want to get hold of the .exe file. I can't find it in the Pascal directory. Where is it and how do I get hold of it? I've seen the .exe files for other programs I've written.
    : :
    : : Also, can one run Turbo Pascal 7.0 programs on other computers that don't have the language installed, like copying the .exe file and running it on other computers?
    : :
    : : Thanks
    : :
    :
    :
    : Check what is the target. If you want to create an .EXE file
    : target must be set to "Disk" (Run/Destination/Disk).
    :
    : You can give your programs to anybody and they will run fine.
    : Programs that you create with TP rarely require additional files.
    : Exceptions are for example fonts, BGI files etc.
    : Simply create new directory and put your EXE in it.
    : If it doesn't run some files are missing so just copy them
    : too untill your program works. Zip everything and send it
    : to your friends.
    :
    :
    : Iby
    :
    Thanks for your reply. Could you please tell me the details on how to create an .exe file?


    Mike2002
  • : Thanks for your reply. Could you please tell me the details on how to create an .exe file?
    :
    :
    : Mike2002
    :

    It is the same process on ANY compiler and ANY platform:
    1. type in some source code
    2. compile it
    3. link it

    The last two steps are done automatically in
    many programming languages including TP.

    So, all you have to do is start your TP by double-clicking
    on TURBO.EXE or TURBO.PIF and from FILE menu select NEW.
    Type in some program code and give it name.
    Here is some sample program:

    [code]
    program hello_world;

    var s:string;

    begin
    write('Enter your name:');
    readln(s);
    writeln('Hello ',s,'. Your name is ',length(s),' characters long.');
    end.
    [/code]

    Save it as HELLO.PAS and then run it by pressing CTRL+F9.
    (Hold CTRL button pressed while pressing the F9 key).
    Press ALT+C to access COMPILE menu. If fifth menu line
    is "Destination Disk", EXE will be created next time you
    run your program (CTRL+F9 - remember?).
    If the menu line is "Destination Memory" no EXE is created.
    If your source file was called HELLO.PAS the EXE will be
    HELLO.EXE and typically will be in a same directory as
    the TURBO.EXE unless you change it (menu Options/Directories ).

    I hope this helps,

    Iby




  • : : Thanks for your reply. Could you please tell me the details on how to create an .exe file?
    : :
    : :
    : : Mike2002
    : :
    :
    : It is the same process on ANY compiler and ANY platform:
    : 1. type in some source code
    : 2. compile it
    : 3. link it
    :
    : The last two steps are done automatically in
    : many programming languages including TP.
    :
    : So, all you have to do is start your TP by double-clicking
    : on TURBO.EXE or TURBO.PIF and from FILE menu select NEW.
    : Type in some program code and give it name.
    : Here is some sample program:
    :
    : [code]
    : program hello_world;
    :
    : var s:string;
    :
    : begin
    : write('Enter your name:');
    : readln(s);
    : writeln('Hello ',s,'. Your name is ',length(s),' characters long.');
    : end.
    : [/code]
    :
    : Save it as HELLO.PAS and then run it by pressing CTRL+F9.
    : (Hold CTRL button pressed while pressing the F9 key).
    : Press ALT+C to access COMPILE menu. If fifth menu line
    : is "Destination Disk", EXE will be created next time you
    : run your program (CTRL+F9 - remember?).
    : If the menu line is "Destination Memory" no EXE is created.
    : If your source file was called HELLO.PAS the EXE will be
    : HELLO.EXE and typically will be in a same directory as
    : the TURBO.EXE unless you change it (menu Options/Directories ).
    :
    : I hope this helps,
    :
    : Iby
    :
    :
    :
    :
    :
    Thanx Iby, the problem's solved! You've been a gr8 help.


    Mike2002
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories