Daniel,
DispId is used in the event that you want to assign the dispatch id
(used with dispatch interfaces, basically late binding). If you don't
assign it, then it will be auto assigned for you. It's a good idea to use
them, as it gives you better control over how your class is exposed to COM.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp (AT) spam (DOT) guard.caspershouse.com
"Daniel Lidström" <someone (AT) microsoft (DOT) com> wrote
Quote:
Hello!
I've read on MSDN [1] that it is necessary to mark methods and properties
with DispId in order to expose them to COM. But that doesn't seem
necessary. I've created interfaces and subclasses in C# and I have no
problem using them from C++. So what is DispId really used for?
[1] Example COM Class (C#): http://msdn2.microsoft.com/en-us/lib...20(VS.80).aspx
--
Daniel |