IPC between VB6 COM control and C# application

G

Guest

I'd like to pass a simple string from a VB6 COM (dll) to a c# application
(we're new in c#). I need to do this while the c# program is running (IPC,
not in the program argument). Can anyone help guide me to the most
clean/simple technique?
 
W

Willy Denoyette [MVP]

jdkatmsn said:
I'd like to pass a simple string from a VB6 COM (dll) to a c# application
(we're new in c#). I need to do this while the c# program is running
(IPC,
not in the program argument). Can anyone help guide me to the most
clean/simple technique?

That means you have a method in your COM dll that returns a string, right.
What you could do is simply create a interop assembly using tlbimp.exe and
add a reference to this assembly (or set a reference to your COM dll in VS)
and call the method from C#.
Check MSDN for details on COM Interop in .NET

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top