Re: initializing private member variables

From: Walter (walter.whitlock_at_REMOVE.boc.com)
Date: 05/10/04


Date: Mon, 10 May 2004 08:55:28 -0400

Thanks for the pointers J. W. and Brian. They have focused my attention
back where it belonged. The source of my confusion was that I was looking
at the wizard generated definition of my class constructor in a *.h file and
seeing only a declaration and thinking that ATL had somehow taken over my
class's definition and how could I tell ATL that I wanted to initialize some
member variables. It's obvious to me now, but I was so focused on ATL
because of it's newness to me that I overlooked what I should have seen.
Thanks for setting me straight,
Walter

"Brian Muth" <bmuth@mvps.org> wrote in message
news:OcdGSFINEHA.1312@TK2MSFTNGP12.phx.gbl...
> If you are trying to pass some data to initialize the private member
> variables, then you really should define a special method, such as
Init(<my
> initializing data>), and have the client call this explicitly right after
> the object is instantiated.
>
> Brian
>
>
>



Relevant Pages

  • Re: Initializing COM library
    ... I do understand that we need to have a CoInitialize() call ... ATL doesn't - the client that hosts your objects does. ... The COM object only needs to initialize COM on ... Are you, by any chance, running Win2K while the customer runs XP and up? ...
    (microsoft.public.vc.atl)
  • Re: Sending Events to VB6 Using Implements Keyword - debugging
    ... > There are basically two ways of getting events from an ATL dll to vb: ... > Now it isnt really that difficult to undertstand, is it, Brian? ... > / atl app crashes when complied and not in the IDE", ... For debugging purposes, I tend to use the C++ debugger, which works quite ...
    (microsoft.public.vc.atl)
  • Re: return com object from inside
    ... params used to create and initialize CFooImpl); ... I think that there's no C++ without exceptions, ATL code included. ...
    (microsoft.public.vc.atl)
  • Re: Console application exporting COM interface?
    ... Well...thanks brian for the shakeup. ... I already have some C code that I want to use from a VB script. ... Can you pls guide me to a tutorial abt starting an ATL ... >> find the details since all the tutorials point to the inner workings of ...
    (microsoft.public.vc.atl)
  • Re: Initializing COM library
    ... I do understand that we need to have a CoInitialize() call ... ATL doesn't - the client that hosts your objects does. ... The COM object only needs to initialize COM on ... machines without the CoInitializecalls. ...
    (microsoft.public.vc.atl)

Loading