Novice question on interoperability

G

Guest

I need to write a C# DLL that is called from unmanaged C++ client. I would
prefer not to use COM if I can (unnecessary overhead, time-sensitive
application). Can somebody direct me at the tutorial or a sample?
Thank you.
Gregory
 
N

Nicholas Paldino [.NET/C# MVP]

If the client has to be completely unmanaged, then you are going to have
to export your component as a COM component. It's a necessary overhead, as
it is the only way to access .NET components without keeping your code
unmanaged on the client side.

Granted, you could use the CLI extensions in C++ to call .NET assemblies
directly, but then your client is no longer purely unmanaged.
 
G

Guest

Gregory said:
I need to write a C# DLL that is called from unmanaged C++ client. I would
prefer not to use COM if I can (unnecessary overhead, time-sensitive
application). Can somebody direct me at the tutorial or a sample?

I find it very hard to believe that the overhead of in process
COM calls should be measurable.

COM is the way to go.

Arne
 

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