🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #930

Re: Help with windows SDK!!

#930
From: Hans van Oostrom
Date: Wed, 19 Dec 1990 15:16
22 lines
1778 bytes
In article <1990Dec18.045307.18834@chinet.chi.il.us>, patrickd@chinet.chi.il.us (Patrick Deupree) writes...
>In article <1990Dec9.204159.4199@csuf3b.CSUFresno.EDU> davidw@csuf3b.UUCP (David Warness) writes:
>>
>>   2) Is it possible to write a program that can run in dos and in Windows?
> 
>It's not really possible to do what you want in one program since a Windows
>program depends on the entry point being WinMain and a DOS program depends
>on main.  There isn't a convenient (or possible) way to make a program that
>could support the two different styles of entry.
>-- 

This can be done by writing the program without windows in any 
language you like, compile it to a .exe and specify it in your windows 
program's .def file instead of winstub.exe.
winstub.exe is a little program that tells you that you need windows 
to run a windows program.  You can change this to be anything you 
want.  It might be some double work, but DOS and Windows are totally 
different environments.

Hans van Oostrom
PO Box J-254, JHMHC                 hans@ufpine                (BITNET)
Gainesville, FL  32601, USA         hans@pine.circa.ufl.edu    (INTERNET)
Technical Details
Message-ID: <26007@uflorida.cis.ufl.EDU>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!pine.circa.ufl.edu!hans
References: <1990Dec9.204159.4199@csuf3b.CSUFresno.EDU> <1990Dec18.045307.18834@chinet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!pine.circa.ufl.edu!hans
From: hans@pine.circa.ufl.edu (Hans van Oostrom)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Help with windows SDK!!
Message-ID: <26007@uflorida.cis.ufl.EDU>
Date: 19 Dec 90 15:16:33 GMT
References: <1990Dec9.204159.4199@csuf3b.CSUFresno.EDU> <1990Dec18.045307.18834@chinet.chi.il.us>
Sender: news@uflorida.cis.ufl.EDU
Reply-To: hans@pine.circa.ufl.edu
Organization: University of Florida - Dept. of Anesthesiology
Lines: 22
News-Software: VAX/VMS VNEWS 1.3-4