I'm reposting this question since I've been having some problems with my MSDN subscription, hoping I might have some better assistance now that aforementioned problems seem to have been resolved.
I'm trying to connect a COM client written in C# to an existing (legacy) out-of-process COM server written in C++.
I have imported the tlb using tlbimp.exe and have referenced the RWC in my project.
I can connect to the COM server using
object scComm32ComObj = Marshal.GetActiveObject("ScComm32.Document");
But that is as far as I am able to get.
I need to be able to call some methods on the ScComm32CommObj, but trying to cast it to an interface or a class usign the interface results in an exception.
View Complete Post