Using multiple source dispinterfaces with VB
-
I have an ATL3 object that is used by a VB6 client. My object supports two interfaces, one of them is an outgoing (event) dispinterface. Everything is ok so far, but when I add a second outgoing dispinterface VB doesn't see it. What do I need to do so my objects can support several different outgoing dispinterfaces? coclass MyCoClass { [default] interface IMyInterface; [default, source] dispinterface DIMyEvents1; [source] dispinterface DIMyEvents2; // VB doesn't see this! };
-
I have an ATL3 object that is used by a VB6 client. My object supports two interfaces, one of them is an outgoing (event) dispinterface. Everything is ok so far, but when I add a second outgoing dispinterface VB doesn't see it. What do I need to do so my objects can support several different outgoing dispinterfaces? coclass MyCoClass { [default] interface IMyInterface; [default, source] dispinterface DIMyEvents1; [source] dispinterface DIMyEvents2; // VB doesn't see this! };
The "Visual Programmer" article in this months MSJ looks like just what you need - he describes getting events from the non-default source interface. ================== The original message was: I have an ATL3 object that is used by a VB6 client. My object supports two interfaces, one of them is an outgoing (event) dispinterface. Everything is ok so far, but when I add a second outgoing dispinterface VB doesn't see it. What do I need to do so my objects can support several different outgoing dispinterfaces?
coclass MyCoClass
{
[default] interface IMyInterface;
[default, source] dispinterface DIMyEvents1;
[source] dispinterface DIMyEvents2; // VB doesn't see this!
}; -
The "Visual Programmer" article in this months MSJ looks like just what you need - he describes getting events from the non-default source interface. ================== The original message was: I have an ATL3 object that is used by a VB6 client. My object supports two interfaces, one of them is an outgoing (event) dispinterface. Everything is ok so far, but when I add a second outgoing dispinterface VB doesn't see it. What do I need to do so my objects can support several different outgoing dispinterfaces?
coclass MyCoClass
{
[default] interface IMyInterface;
[default, source] dispinterface DIMyEvents1;
[source] dispinterface DIMyEvents2; // VB doesn't see this!
};