Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

_com_dispatch_method

0 views
Skip to first unread message

Everett Barnes

unread,
May 14, 1998, 3:00:00 AM5/14/98
to

Hello. I am trying to use _com_dispatch_method to pass in a IDispatch* to a
server fn:
STDMETHODIMP CSList::open(IDispatch* filter, long recordCount, IDispatch* *
result)
Here is the call:
_com_dispatch_method( &spServer,
dispids[0],
DISPATCH_METHOD,
VT_DISPATCH,
(void*)&_result,
L"\x0009\x0003",
recordset,
recordCount);

recordset is an IDispatch* to a _RecordsetPtr and recordcount is a long for
the ADO cache size.

This works fine in-process when the server is an ATl component on my local
machine. When I move the function to an MTS componenet, it times out. Here
is the error code:
"The remote procedure call failed - Unexpected error 0x800706be - RDS 1.5"

I have other functions that do not take IDispatch* [in] parameters - they
work fine. What am I doing wrong? Is it the \x0009 ?

Thank you in advance for any help,
Everett Barnes
ever...@prodigy.net

mcha...@enactinc.com

unread,
Jun 9, 1998, 3:00:00 AM6/9/98
to

Everett,

_com_dispatch_method requires that the 5th argument be a pointer to a pointer
to a IDispatch. Noticed that you had a pointer to a pointer to a pointer to
IDispatch (as &result) since that was passed as IDispatch** to your method.

matt


In article <OXXRof2...@uppssnewspub05.moswest.msn.net>,


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading

mfoc...@my-dejanews.com

unread,
Jun 9, 1998, 3:00:00 AM6/9/98
to

Everett,

I seem to remember reading something about passing interface/object references
in MTS as not a simple thing. Something about you must use SafeRef() to let
MTS know something about what you're doing.

Not sure if its relevent, but you might check.

If I'm way off base here, sorry for butting in.

Mike

In article <6lk05b$bhb$1...@nnrp1.dejanews.com>,

0 new messages