Re: C++ Runtime Binding
From: Ben Rush (kwendex_at_yahoo.com)
Date: 03/15/04
- Next message: Igor Tandetnik: "Re: C++ Runtime Binding"
- Previous message: Igor Tandetnik: "Re: C++ Runtime Binding"
- In reply to: Igor Tandetnik: "Re: C++ Runtime Binding"
- Next in thread: Igor Tandetnik: "Re: C++ Runtime Binding"
- Reply: Igor Tandetnik: "Re: C++ Runtime Binding"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Mar 2004 15:47:14 -0600
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.
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:exIvX8sCEHA.580@TK2MSFTNGP11.phx.gbl...
> Is what the result of ATL-implemented new and delete operators?
> --
> With best wishes,
> Igor Tandetnik
>
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
>
> "Ben Rush" <kwendex@yahoo.com> wrote in message
> news:%23mpLn1sCEHA.2628@TK2MSFTNGP11.phx.gbl...
> > Is this the result of ATL-implemented new and delete operators?
> >
> >
> > "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
> > news:u2oavqrCEHA.1456@TK2MSFTNGP09.phx.gbl...
> > > "Ben Rush" <kwendex@yahoo.com> wrote in message
> > > news:OHWV6erCEHA.3748@TK2MSFTNGP11.phx.gbl...
> > > > I see that, by default, ATL doesn't bind to the C++ runtime
> for
> > > > efficiency. My understanding is that, then, constructors and
> > > destructors
> > > > wouldn't be called if I were to create my own C++ class in an ATL
> > > project,
> > > > am I correct?
> > >
> > > In ATL3, constructors and destructors of global and static objects
> are
> > > not called in MinCRT build. Everything still works for automatic
> (those
> > > created on the stack) and dynamic (those created with new) objects.
> > >
> > > In ATL7 (shipped with VC7[.1]), global and static objects work fine
> even
> > > in MinCRT builds.
> > > --
> > > With best wishes,
> > > Igor Tandetnik
> > >
> > > "For every complex problem, there is a solution that is simple,
> neat,
> > > and wrong." H.L. Mencken
> > >
> > >
> >
> >
>
>
- Next message: Igor Tandetnik: "Re: C++ Runtime Binding"
- Previous message: Igor Tandetnik: "Re: C++ Runtime Binding"
- In reply to: Igor Tandetnik: "Re: C++ Runtime Binding"
- Next in thread: Igor Tandetnik: "Re: C++ Runtime Binding"
- Reply: Igor Tandetnik: "Re: C++ Runtime Binding"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|