Sign in to follow this  
Followers 0
theguy0000

Getting "out" params in an object's method...?

2 posts in this topic

Ok, so, on MSDN, when I look up the IMessenger::GetContact Method, I get this:

Syntax:

HRESULT GetContact(   

    BSTR bstrSigninName,
    BSTR bstrServiceId,
    IDispatch **ppMContact
);

Parameters:

bstrSigninName

[in] A BSTR that contains the sign-in name of the remote user to create as a local MessengerContact object.

bstrServiceId

[in] A BSTR that contains the globally unique identifier (GUID) service ID of the remote user being created. Clients with secondary services can potentially create MessengerContact objects for any currently supported service. If this parameter is used, the method will search the specified service for a person whose name matches bstrSigninName by calling CreateUser on the service. If this parameter is not used, by passing in an empty string, the method will search the local user's contact list and not the services.

ppMContact

[out, retval] A pointer to a pointer to the IDispatchPosted Image interface on the new (or existing) MessengerContact object. The new object can now be accessed through the IMessengerContact interface.

[[REFERENCE]]

---------

So how exactly would I call this, particularly about the third parameter?

It says "out", does that mean that I can then access it? If so, what should I put as its value when calling the method? Do I just leave that parameter out? How can I retrieve the MessengerContact object that is supposedly now accessible?

COM is confusing :)


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



41 views and not a single answer? :)


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0