[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-atl
Subject:    Re: Returning [out] parameter COM interface to VB
From:       James Schreuder <james.schreuder () ROTHSCHILD ! COM ! AU>
Date:       2000-03-31 3:23:29
[Download RAW message or body]


Thanks, that helps. I can't use a [out, retval], so I'll have to an [in,
out] param. In this case, is the first thing to do the COM method that
returns a new object, call ->Release() on the interface pointer (and then
reset or set to null)?

Another thing, I called the method with a newly created (in VB) MyObject
and found that the reference count on the MyObject was 5 (!). Shouldn't it
be only 1,  since it was just created (I have not assigned anything or used
it in anyway)?

TIA

James.

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic