Dev*_*ove 12 c# dll dllimport visual-studio-2012 windows-phone-8
我试图Windows Phone 8
在Visual Studio Express 2012中向框架添加C++ DLL .
我试过以下方法
通过PInvoke导入和调用
[DllImport("WP8DLL.dll",CallingConvention = CallingConvention.Cdecl)]
public static extern int functionReturningInteger();
结果:这种方式虽然没有编译错误,但是当我尝试访问它抛出的DLL的方法时System.NotSupportedException
.
在项目属性中添加引用
结果:我收到消息"无法将对更高版本或不兼容程序集的引用添加到项目中 "
归档时间: |
|
查看次数: |
9159 次 |
最近记录: |