How to make C wrapper around C# code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles

    #1

    How to make C wrapper around C# code

    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
  • Guest's Avatar

    #2
    How to make C wrapper around C# code

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

    Hi,

    Make your C# dll.
    Make a C++ dll with managed code, and in it export C
    functions.
    It should be ok.

    Comment

    • Christopher Sin

      #3
      How to make C wrapper around C# code

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

      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.

      Comment

      Working...