different applications...different entry points

S

s2224

Hi,

is it permissible according to iso c++ standard, that there is different
entry points for different type of applications such as WinMain for windows
application and DllMain for dll type?

if its against iso c++ standard then is there any way to do these tasks such
as windows programming by following iso standards?
is there any c++ library available for windows programming by strictly
following iso c++ standard?

thanx.
 
A

Alf P. Steinbach

* s2224:
is it permissible according to iso c++ standard, that there is different
entry points for different type of applications

Not really. However, die-hard defenders of one very popular compiler
(this includes a number of C++ "experts") sometimes respond that this
is allowed for a _freestanding_ mplementation, as opposed to a _hosted_
implementation which must follow the standard. In effect they choose
to regard this compiler as a freestanding implementation for the
purpose of discussing entry points, and as hosted in all other respects.


such as WinMain for windows application and DllMain for dll type?

The C++ standard has (almost) nothing to say about dynamic libraries.

if its against iso c++ standard then is there any way to do these tasks such
as windows programming by following iso standards?

Regarding the 'main' function for an application the g++ compiler is one
that conforms to the standard out of the box, and the Visual C++ compiler
can be made conforming by adding the necessary linker options (for that
compiler you also have to turn on exception handling and RTTI support if
standard conformance is what you want). I suggest you ask in the relevant
newsgroup for your particular compiler. Compiler options are off-topic.

is there any c++ library available for windows programming by strictly
following iso c++ standard?

Probably not, but there are many cross-platform C++ GUI kits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top