|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: CoMarshalInterThreadInterfaceInStream and WinXP
From: Kim Gräsman (kim
MVPS.ORG)
Date: Tue Jul 26 2005 - 11:37:29 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Palaniappa,
> ICCMEvent* pICMEvent = (ICCMEvent*)*pp;
Have you tried
ICCMEvent* pICMEvent = 0;
(*pp)->QueryInterface(&pICMEvent);
?
Casting between COM interfaces is never a good idea.
Also, I don't see any reason to marshal and unmarshal the interface pointer
here...? You're getting a supposedly valid interface pointer from your
vector, marshal it into a stream, and then unmarshal it back on the same
thread.
- Kim
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
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 ]