#define DllExport extern "C"__declspec (dllexport)
DllExport int imageprocesstest( char *cur_dir,char *imagepath_res)
{
}
导入
using System.Runtime.InteropServices;
[DllImport( "GOImage.dll",
EntryPoint = "imageprocesstest",
CharSet = CharSet.Ansi, CallingConvention = CallingConvention .Cdecl)]
public static extern int imageprocesstest(string ImagePath, string ImagePath_Res);