TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Steven Pasztor
from: david begley
date: 1993-10-13 10:25:10
subject: Re: Windoze and DOS

On Oct 08, 1993 at 17:29, Steven Pasztor of 3:632/103.123 wrote:

 db>> Then, when you run the EXE under DOS, "DOS App" will
run, whilst if you
 db>> run the EXE under Windows, "Windows App" will run. 
How do you achieve
 db>> this? Lookup the "STUB" keyword for your Windows
application's DEF
 db>> (linkage definition) file.
 SP>
 SP> I assume though, that you still require two seperate programs?

You wanted the easiest solution, right?  :-)  As David Nugent pointed out,
in order the for executable to be effectively one program and *still* work
under both environments requires too much work (unless your intended
audience is a lucrative one).

 SP> The idea was to share as much code as possible.

You can still do that at the source code level (abstracting all the user
interface things away from the rest of the application), but at the
execution level things get a little tougher.  Perhaps you could experiment
with using the "DOS App" and "Windows App" areas to
hold user interface code, whilst the rest of the application's
"grunt" comes from an external .DLL and/or overlay file that
could be shared between the two .. always something to experiement with.. .
 .

    - dave
    david{at}harpo.nepean.uws.edu.au

---
* Origin: [ epicentre of the universe -- sydney australia ] (3:711/934.4)
SEEN-BY: 711/809 934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.