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.
 

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

Back
Top