delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/01/05:07:17

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SV: SV: Icons...
Date: Wed, 01 Sep 1999 03:02:20 GMT
Organization: Monash Uni
Distribution: world
Message-ID: <37cc969d.1632923@newsserver.cc.monash.edu.au>
References: <37CA614E DOT 663B7A5D AT cc DOT umanitoba DOT ca> <7qfpe3$g82$1 AT solomon DOT cs DOT rose-hulman DOT edu> <37CBB744 DOT BF04C602 AT cc DOT umanitoba DOT ca> <PEQy3.45$aU8 DOT 171044864 AT newsb DOT telia DOT net> <37CBF75A DOT 2C063F1 AT unb DOT ca> <bmUy3.79$RB5 DOT 170715648 AT newsa DOT telia DOT net> <37CC157D DOT 10D97BDE AT unb DOT ca>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 936154881 22934 130.194.198.138 (1 Sep 1999 03:01:21 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 1 Sep 1999 03:01:21 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Actually, the stub doesn't get executed if Windows is running.

Note that Windows 95 seems to give programs an icon with the same name
if one exists, eg:

if scorch.exe and scorch.ico exist in the same directory, Win95 will
use scorch.ico as the icon for scorch.exe (or perhaps it will just use
it for the assosciated "shortcut" (pif file) which Win95 *always*
creates when you run a DOS prog from explorer)

Davin.

>    I don't know how, if I had to GUESS:
>Win32/Win16 programs, when run from real DOS would either say "This program
>requires windows" or some older ones would load windows.  So they have some
>sort of stub that checks to see if Windows is loaded and does something
>different in each case.  So, what Scorched Earth probably did was:
>
>The executable was probably a Win16 executable with the proper icon table, but
>in both cases (if windows is loaded or not) it would run a DOS executable that
>was embedded inside the Win16 executable.
>

__________________________________________________________
       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019