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?
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.
- Nicholas Paldino [.NET/C# MVP]
"Gregory Khra" <GregoryK
@discussions.microsoft.com> wrote in message
Gregory Khra wrote:
> 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.