Calling C# dll from old C code

  • Thread starter Thread starter Glenn Roberts
  • Start date Start date
G

Glenn Roberts

Hi,

I have old C (not C++) code which I want to keep, but want to add extra
functionality by calling functions from a C# dll.
....Is this (easily) possible ? :)

Thanks !
 
Hi Glenn,

The easiest way would probably be to expose your C# classes as COM objects
and call them from the unmanaged code like any other COM object.
 
I suppose you want to call into C# from C.
The only way to do this is by using COM interop.

Willy.
 
Back
Top