sdaiSaveModelBNUnicode
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiSaveModelBNUnicode")] public static extern void x86_sdaiSaveModelBNUnicode(Int32 model, string fileName); [DllImport(enginedll, EntryPoint = "sdaiSaveModelBNUnicode")] public static extern void x64_sdaiSaveModelBNUnicode(Int64 model, string fileName); public static void sdaiSaveModelBNUnicode(Int64 model, string fileName) { if (IntPtr.Size == 4) { x86_sdaiSaveModelBNUnicode((Int32)model, fileName); } else { x64_sdaiSaveModelBNUnicode(model, fileName); } } [DllImport(enginedll, EntryPoint = "sdaiSaveModelBNUnicode")] public static extern void x86_sdaiSaveModelBNUnicode(Int32 model, byte[] fileName); [DllImport(enginedll, EntryPoint = "sdaiSaveModelBNUnicode")] public static extern void x64_sdaiSaveModelBNUnicode(Int64 model, byte[] fileName); public static void sdaiSaveModelBNUnicode(Int64 model, byte[] fileName) { if (IntPtr.Size == 4) { x86_sdaiSaveModelBNUnicode((Int32)model, fileName); } else { x64_sdaiSaveModelBNUnicode(model, fileName); } }