COM Interop
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Ive used tlbimp.exe to generate an assembly .DLL from a COM object's .TLB file, which seems to work fine. I've added a reference to it into a C# project, now I'm running into a simple interop problem that I just can't seem to get thru my head. I've got a method on the COM object that did take a OLECHAR* pointer as a parameter, but the wrapper class lists this as a "ref ushort" parameter. I've been looking at what should be done here for marshalling the data, seems like it should be easy - but it's not clear. Can someone hit me on the head & make me understand? Thanks, JC