How to make C wrapper around C# code

  • Thread starter Thread starter Charles
  • Start date Start date
C

Charles

I need to create a dll out of C# code that can be called by a lisp
compiler/interpreter (Cormanlisp) that has a C foreign function
interface.
How do I create a C wrapper around my C# code?

Thanks,

Charles
 
-----Original Message-----
I need to create a dll out of C# code that can be called by a lisp
compiler/interpreter (Cormanlisp) that has a C foreign function
interface.
How do I create a C wrapper around my C# code?

Hi,

Make your C# dll.
Make a C++ dll with managed code, and in it export C
functions.
It should be ok.
 
-----Original Message-----
I need to create a dll out of C# code that can be called by a lisp
compiler/interpreter (Cormanlisp) that has a C foreign function
interface.
How do I create a C wrapper around my C# code?

Make your code in a C# dll.
Call this dll in a managed C++ dll, and in it exports C
functions. It should be ok.

But, imho, it is not a very good idea.
C# is not made for that kind of work.
 
Back
Top