如何在WPF中引用C++的DLL?
wpf吧
全部回复
仅看楼主
level 9
sky_baby025 楼主
using System.Runtime.InteropServices;后并不能使用[DllImport]
看了MSDN官网System.Runtime.InteropServices也并不包含DllImport,怎么办?
2015年05月18日 12点05分 1
level 9
sky_baby025 楼主
2015年05月18日 12点05分 2
level 1
[DllImport(dllFile, EntryPoint = "cpp_method", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto)]
public static extern int cpp_method();
2016年01月15日 13点01分 3
1