Re: C++ Runtime Binding

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 03/15/04


Date: Mon, 15 Mar 2004 17:26:11 -0500


"Ben Rush" <kwendex@yahoo.com> wrote in message
news:%23x0F%23ctCEHA.3928@TK2MSFTNGP09.phx.gbl...
> I guess what I should have asked is how are the constructors and
destructors
> called without the CRT? My understanding, and it could be quite easily
> flawed, is that without the startup code for the runtime, constructors
and
> destructors aren't called. But if they can be called in a _ATL_MIN_CRT
> build, then something has to be doing the leg work.

ATL7 essentially replicates the necessary start-up code - just enough of
it to run constructors and destructors of global objects.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Re: C++ Runtime Binding
    ... What you're saying is that when the CRT is linked, ... that calls the constructors and destructors of global/static objects. ... Notice Igor carefully referred to global/static objects' constructors/ ...
    (microsoft.public.vc.atl)
  • Re: C++ Runtime Binding
    ... > that calls the constructors and destructors of global/static objects. ... calls to constructors and destructors are emitted at compile time ... The start-up code (be it in CRT or ATL7) simply ...
    (microsoft.public.vc.atl)
  • Re: advantages of C
    ... And constructors and destructors and templates and exceptions and ...
    (comp.programming)
  • Re: On assembly and portability (between Linux and Windows)
    ... >>any requirement to automatically call constructors and destructors. ... In order to be considered truely object oriented, a programming language ... and structure in an object-oriented computer program. ... I see no reason to require Constructors or Destructors. ...
    (alt.lang.asm)
  • Re: C++ Runtime Binding
    ... I believe you are under the misconception that constructors and ... destructors only, since these are the only ones affected in ATL3. ... > "Igor Tandetnik" wrote in message ... >>> called without the CRT? ...
    (microsoft.public.vc.atl)

Loading