using Construction.BatchCreateMap; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace TestIDWSharp { public class ModelCreateIDW { #if DEBUG //const string DLL_FILE = @"C:\GeoIntelligent\Code\dirgdf\bin\Debug\WellCalibrate.dll"; const string DLL_FILE = "ModelCreateIDW.dll"; #else const string DLL_FILE = "ModelCreateIDW.dll"; #endif [DllImport(DLL_FILE, EntryPoint = "IDWModelCreate", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)] public static extern void IDWModelCreate(string xyzFile, string borderFile,string faultFile, string resultFile, int XCount,double smoothFactor, int smoothTimes, IntPtr callback, int insertTimes /*= 0*/, double contourStep, int contourMarkSpace); } }