Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-02

win and dos exes in one file?

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zbynek Grygar

Is any way how compile win prog and dos prog in one exe ? (win exe have dos header and them win header)

can i use jump in this header (after writeln cannot excute win aplication) to run dos part of program...?

do you have any idea

-- Zbynek Grygar

_____________________________________________________________________ Prace Seznam - Hledate praci nebo menite zamestnani? http://prace.seznam.cz

Reply by email

Jonas Maebe
to Zbynek Grygar
Is any way how compile win prog and dos prog in one exe ? (win exe have dos header and them win header) can i use jump in this header (after writeln cannot excute win aplication) to run dos part of program...?

In theory it cerainly should be possible, but there is no built-in support for such a thing nor do I know of anyone who has already done this with FPC.

Joans

Reply by email

Zbynek Grygar

Dne 13.��nor�2001, napsal:

Show quoted text 7 lines
In theory it cerainly should be possible, but there is no built-in support for such a thing nor do I know of anyone who has already done this with FPC. Joans

can be this as feature in new version ?

or is anybody who can write patch or crack (which can compile two exes in one?)

Zbynek
_____________________________________________________________________ Jake bude pocasi? http://pocasi.seznam.cz

Reply by email

Pierre Muller
to Zbynek Grygar

At 16:36 13/02/01 , vous avez écrit:

Show quoted text 11 lines
Dne 13. únor 2001, napsal: > > In theory it cerainly should be possible, but there is no built-in > support for such a thing nor do I know of anyone who has already done this > with FPC. > > > Joans can be this as feature in new version ?

No, I don't think that this has a sufficiently common usage that it might be considered to add it to the compiler.

or is anybody who can write patch or crack (which can compile two exes in one?)

This would require in particular to have a modified linker! Currently the win32 version uses the gnu linker compiled for win32 target, which just prints the standard "This program cannot be run in Dos mode" To change this is probably not that easy....

Reply by email

Zbynek Grygar
If someone writes a patch for the compiler (or a post-processing utility) to allow it. Jonas

and is here someone who can write it?

Zbynek
_____________________________________________________________________ Jake bude pocasi? http://pocasi.seznam.cz

Reply by email

Unknown author
to Jonas Maebe: If someone writes a patch for the compiler (or a post-processing utility) to allow it.…

Date sent: Tue, 13 Feb 2001 16:59:47 +0100 (NFT) From: Jonas Maebe
To:
Subject: Re: [fpc-devel]Re: [fpc-devel]win and dos exes in one file? Send reply to:

Show quoted text 8 lines
> > In theory it cerainly should be possible, but there is no built-in > > support for such a thing nor do I know of anyone who has already > > done this with FPC. > > can be this as feature in new version ? If someone writes a patch for the compiler (or a post-processing utility) to allow it.

I suspect you'd have to patch the GO32v2 stub first of all; it does some integrity checks currently, so running the DOS part of a bound executable outputs something like "not a COFF, check for viruses". The binding itself is very easy, tools for this can be freely downloaded from Internet.

Tomas

Reply by email