Novice question on interoperability

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
Back
Top