1 2 3 4 5 6 7 8 9 10 11
using System.Runtime.InteropServices; public class M { [DllImport("main.dll")] public static extern void start_caml_engine(); public static void Main() { System.Console.WriteLine("Now starting the OCaml engine."); start_caml_engine(); } }