Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
using System;
using System.Run-time.InteropServices;
using System.Text;
namespace MyOrganisation.OpenMI.MyModel
{
   public class MyEngineDLLAccess
   {
\      [DLLImport(@'C:\MyEngine\bin\MyEngine.DLL',
         EntryPoint = 'INITIALIZE',
         SetLastError=true,
         ExactSpelling = true,
         CallingConvention=CallingConvention.Cdecl)\]
      public static extern bool Initialize(string filePath, uint length);
\      [DLLImport(@'C:\MyEngine\bin\MyEngine.DLL',
EntryPoint =         EntryPoint = 'PERFORMTIMESTEP',
         SetLastError=true,
         ExactSpelling = true,
         CallingConvention=CallingConvention.Cdecl)\]
      public static extern bool PerformTimeStep();
\      [DLLImport(@'C:\MyEngine\bin\MyEngine.DLL',  
         EntryPoint = 'FINISH',
         SetLastError=true,
         ExactSpelling = true,
         CallingConvention=CallingConvention.Cdecl)\]
      public static extern bool Finish();
   }
}

...