using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Construction.BatchCreateMap { public class GeometryLibCall { #if DEBUG const string DLL_FILE = "GeometryLibD.dll"; #else const string DLL_FILE = "GeometryLib.dll"; #endif [DllImport(DLL_FILE, EntryPoint = "GeometryLibDigHoles", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr GeometryLibDigHoles(string xml); #if DEBUG const string DLL_FILE2 = "GeoSigmaDraw.dll"; #else const string DLL_FILE2 = "GeoSigmaDraw.dll"; #endif [DllImport(DLL_FILE2, EntryPoint = "MergeCurve", CharSet = CharSet.Unicode, ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr MergeCurve(string curve1, string curve2, string mode); } }