G
Guest
I call from managed C++ a DCOM server interface method that takes a callback
interface as parameter. I cannot figure out how to implement such a callback
object in managed C++. The callback interface (e.gr. ICallback) is defined by
the server type library.
I have figured out that the following code seems to implement a COM object
in managed C++ but how do I implement the callback interface ICallback:
#import "dcom_server.exe" // Import server type library
using namespace System::Runtime::InteropServices;
[GuidAttribute("..."), ClassInterface(ClassInterfaceType::AutoDual)]
public __gc class CallbackImplementation
{
};
I cannot inherit from the ICallback interface because it's unmanaged code.
Any ideas?
Anders
interface as parameter. I cannot figure out how to implement such a callback
object in managed C++. The callback interface (e.gr. ICallback) is defined by
the server type library.
I have figured out that the following code seems to implement a COM object
in managed C++ but how do I implement the callback interface ICallback:
#import "dcom_server.exe" // Import server type library
using namespace System::Runtime::InteropServices;
[GuidAttribute("..."), ClassInterface(ClassInterfaceType::AutoDual)]
public __gc class CallbackImplementation
{
};
I cannot inherit from the ICallback interface because it's unmanaged code.
Any ideas?
Anders