🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Claus Faerber Thu, 01 Feb 1996 18:14
Re: Are all Windows programs ill-formed?
#3190
Author: Claus Faerber
Date: Thu, 01 Feb 1996 18:14
28 lines
2170 bytes
Eugene Radchenko <eugene@qsar.chem.msu.su> wrote about
Are all Windows programs ill-formed?
in article <AE5J83na99@qsar.chem.msu.su> of 29 Jan 96:
> Hi!
> I have just realized that something is grossly overlooked in C++ standard.
> 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(HINSTANCE curInst, HINSTANCE prevInst, LPSTR cmdline, int
> cmdShow) Some of this is of course quirks or even outright ignored in Win32
> (prevInst), but the full non-parsed command line could be useful sometimes,
> and not all implementations provide the function retrieving it. And anyway
> this is definitely not a main() from the specs. Maybe the requirements on
> the main() should be relaxed somehow?

The actual main() procedure is part of the C++ Windows run- 
time library and it's this function which calls Win/LibMain.

Claus

------------------------------------------------------------------------
Claus Andre Faerber - claus@faerber.muc.de - http://www.muc.de/~cfaerber
------------------------------------------------------------------------
---
[ 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. ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads