By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 1,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

Compiler Bug? Can't use IStream* in interface before using [satyp

P: n/a
I am defining a COM IDispatch interface.
The following causes a compiler error:

[id(3), helpstring("method Meth1")] HRESULT Meth1([in] IStream* data);
[id(4), helpstring("method Meth2")] HRESULT Meth2([out,retval,satype("BSTR")] SAFEARRAY** list);

error C2440: 'initializing' : cannot convert from 'VARIANT' to 'IStream *'

Whereas removing the satype attribute or switching the id values does not.

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.