Juan Dent
2004-09-18 23:21:03 UTC
Hi,
Yes, it sounds strange. Yet, I am doing a migration of some code in C++
using COM to C# in .NET and this C++ unmanaged code calls the IDispatch
methods GetIDsOfNames and Invoke which have a special implementation in the
original C++ COM servers. All the logic of these COM servers depends on their
particular implementation of IDispatch.
One idea I have is that the new .NET implementations expose interfaces as
Dual, so perharps I could just expose them as IUnknown and add the IDispatch
members by hand. Is this ok?
Yes, it sounds strange. Yet, I am doing a migration of some code in C++
using COM to C# in .NET and this C++ unmanaged code calls the IDispatch
methods GetIDsOfNames and Invoke which have a special implementation in the
original C++ COM servers. All the logic of these COM servers depends on their
particular implementation of IDispatch.
One idea I have is that the new .NET implementations expose interfaces as
Dual, so perharps I could just expose them as IUnknown and add the IDispatch
members by hand. Is this ok?
--
Thanks in advance,
Juan Dent, M.Sc.
Thanks in advance,
Juan Dent, M.Sc.