🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3212

Re: Are all Windows programs ill-formed?

#3212
From: David Byrden
Date: Fri, 02 Feb 1996 22:00
15 lines
1459 bytes
>> It requires every program to have the main() function (which 
>> implementation is not allowed to supply) with parameters (void) or (int 
>> argc, int*argv[]). However, Windows programs have another convention: 
>> prrogram must contain the function  int WinMain

I remember reading that you can write a Windows program with a main() 
function and the usual command line arguments, and then the Microsoft 
compiler will then generate WinMain somehow....but that the "operating 
system" does link to WinMain.

                 David
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
Technical Details
Message-ID: <4es43g$g4m@news.bridge.net>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
References: <AE5J83na99@qsar.chem.msu.su>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: David Byrden <100101.2547@compuserve.com>
Newsgroups: comp.std.c++
Subject: Re: Are all Windows programs ill-formed?
Date: 02 Feb 1996 14:00:26 PST
Organization: self-employed
Approved: austern@isolde.mti.sgi.com
Message-ID: <4es43g$g4m@news.bridge.net>
References: <AE5J83na99@qsar.chem.msu.su>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: 2 Feb 1996 04:31:44 GMT
X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMRKJpUy4NqrwXLNJAQHnlwIAvHV8yyNVynNiaHE8SXRfuHc8z9eJP9F4
 dxhjWuHRoHwZyx8WbVOvf96F12wIXBgpLaEDQI3YeMftDCeASZdRzA==
 =n4sh
Originator: austern@isolde.mti.sgi.com