|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Phyllis Hahs (phyllisha
HOTMAIL.COM)Date: Thu Jun 07 2001 - 14:55:24 CDT
Yeah, I should really read all these books... I also found a few other
Advanced Visual Basic books [1] [2] at Amazon. Are they as juicy as the
DevelopMentor one? I might as well order everything all at once.
thx,
-phy
[1]
http://www.amazon.com/exec/obidos/ASIN/0072420243/o/qid=991943440/sr=2-2/ref
=aps_sr_b_1_2/103-9019944-3555819
[2]
http://www.amazon.com/exec/obidos/ASIN/1572318937/o/qid=991943440/sr=2-3/ref
=aps_sr_b_1_3/103-9019944-3555819
----- Original Message -----
From: "Tim Tabor" <tltabor
EARTHLINK.NET>
To: <DCOM
DISCUSS.MICROSOFT.COM>
Sent: Thursday, June 07, 2001 2:30 PM
Subject: Re: Set and IUnknown vs IDispatch
> It is WAY worth whatever trouble it costs. Guessing from your questions,
> you'll love it!
>
> // tim
>
> > -----Original Message-----
> > From: Distributed COM-Based Code [mailto:DCOM
DISCUSS.MICROSOFT.COM]On
> > Behalf Of Phyllis Hahs
> > Sent: Thursday, June 07, 2001 2:30 PM
> > To: DCOM
DISCUSS.MICROSOFT.COM
> > Subject: Re: Set and IUnknown vs IDispatch
> >
> >
> > Hi Tim,
> >
> > Thx for the reference. Unfortunately, it's not so easy and quick to get
> > DevelopMentor books up here in Canada. It took me 3mths to
> > finally get hold
> > of Transactional COM+. I regret not getting a few other
> > DevelopMentor books
> > at the time.
> >
> > Anyways, I'll be going to TechEd next week, I'll try my luck at the
local
> > bookstore in Atlanta.
> >
> > -phy
> >
> > ----- Original Message -----
> > From: "Tim Tabor" <tltabor
EARTHLINK.NET>
> > To: <DCOM
DISCUSS.MICROSOFT.COM>
> > Sent: Thursday, June 07, 2001 11:08 AM
> > Subject: Re: Set and IUnknown vs IDispatch
> >
> >
> > > Hi Phy.
> > >
> > > I think you want to go to pp. 43 ff in
> > > _Advanced Visual Basic 6_ by Matt Curland.
> > >
> > http://www.amazon.com/exec/obidos/ASIN/0201707128/qid=991926491/sr
> > =1-1/ref=s
> > > c_b_1/103-0517829-5397420
> > >
> > > The section "Set and IUknown" goes into the internals of
> > > the Set statement, for both customs and duals.
> > >
> > > // t
> > >
> > > > -----Original Message-----
> > > > From: Distributed COM-Based Code
[mailto:DCOM
DISCUSS.MICROSOFT.COM]On
> > > > Behalf Of Phyllis Hahs
> > > > Sent: Thursday, June 07, 2001 11:01 AM
> > > > To: DCOM
DISCUSS.MICROSOFT.COM
> > > > Subject: Re: Set and IUnknown vs IDispatch
> > > >
> > > >
> > > > Phil,
> > > >
> > > > What does VB use as the default property when IFoo does not have any
> > > > property with a dispid of 0?
> > > >
> > > > thx,
> > > > -phy
> > > >
> > > > ----- Original Message -----
> > > > From: "Phil Reynolds" <PReynolds
RIDGEWAY-SYS.COM>
> > > > To: <DCOM
DISCUSS.MICROSOFT.COM>
> > > > Sent: Thursday, June 07, 2001 3:56 AM
> > > > Subject: Re: Set and IUnknown vs IDispatch
> > > >
> > > >
> > > > > AFAIK this is to do with VB's understanding of default properties:
> > > > >
> > > > > You need to use "Set x = y" to set the variable x where as just
> > > > using "x =
> > > > > y" would cause VB to try to set "x.default_property = y"
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Phyllis Hahs [mailto:phyllisha
HOTMAIL.COM]
> > > > > > Sent: 07 June 2001 00:57
> > > > > > To: DCOM
DISCUSS.MICROSOFT.COM
> > > > > > Subject: [DCOM] Set and IUnknown vs IDispatch
> > > > > >
> > > > > >
> > > > > > I have a property that basically returns the interface IFoo
> > > > > > as follows. The strange thing is that whether the return
> > > > > > statement needs a Set or not depends on what IFoo is
> > inherited from.
> > > > > >
> > > > > > Property Get GetFoo() As IFoo
> > > > > > Set GetFoo = m_oFoo '[1] IFoo inherits from IUnknown,
> > > > > > must use Set
> > > > > > 'GetFoo = m_oFoo '[2] IFoo inherits from
> > > > > > IDispatch, no need to use Set
> > > > > > End Property
> > > > > >
> > > > > > Is it because VB only understand IDispatch ptr, but not
> > > > > > IUnknown ptr. So at [2] above, VB first massaged the
> > > > > > IDispatch ptr into a Variant, and then the Variant in turn
> > > > > > gets assigned to the property? Is my speculation correct?
> > > > > >
> > > > > > TIA
> > > > > > -phy
> > > > >
> > > > > ----------------------------------------------------------------
> > > > > Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> > > > > contains important info. Save time, search the archives at
> > > > > http://discuss.microsoft.com/archives/index.html .
> > > > > To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
> > > > >
> > > >
> > > > ----------------------------------------------------------------
> > > > Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> > > > contains important info. Save time, search the archives at
> > > > http://discuss.microsoft.com/archives/index.html .
> > > > To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
> > >
> > > ----------------------------------------------------------------
> > > Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> > > contains important info. Save time, search the archives at
> > > http://discuss.microsoft.com/archives/index.html .
> > > To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
> > >
> >
> > ----------------------------------------------------------------
> > Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> > contains important info. Save time, search the archives at
> > http://discuss.microsoft.com/archives/index.html .
> > To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
>
> ----------------------------------------------------------------
> Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> contains important info. Save time, search the archives at
> http://discuss.microsoft.com/archives/index.html .
> To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
>
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]