Re: dual interface for IDispatch
* George:
Thanks Alf,
Maybe I should express my confusion in another way. :-)
Now my confusion is, to implement an interface for OLE automation, once we
inherit from IDispatch interface, then it is always a dual interface, right?
What type of implementation in C++ for a component is not a dual interface?
I can not imagine a sample. Any ideas?
regards,
George
"Alf P. Steinbach" wrote:
* George:
Hello everyone,
Could anyone show me a sample or where to find dual interface implementation
for IDispatch please?
I have seached for MSDN and Google for half an hour and seems all I could
get are MFC based.
Any non-MFC and non-ATL (pure C++) sample?
Implementing IDispatch is non-trivial.
You're better served using an existing library (e.g. ATL) than doing it
yourself.
That said, as I recall Brockschmidt's "Inside OLE" book had some
examples, and as I recall it was included with old versions of MSDN Library.
Cheers, & hth.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
I'll answer if you can (1) bottom-post (or generally, following the
bottom-posting or top-posting convention employed in the article you
respond to), (2) refrain from quoting signatures or other extranous
material, such as above, and (3) not doing that by removing all quoting,
i.e., quote whatever's necessary to establish the context for what
you're responding to, so that people with unreliable newsservers don't
have to check out Usenet archives in order to understand an article.
You might want to READ the signature you quoted above.
It's very good that you've managed to stop multi-posting to umpteen
Usenet groups, so that now you only have this top-posting/bottom-posting
thing, and quoting, left to fix. :-)
Cheers, & TIA.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?