急——求把这个简单的c/c++函数封装成c#函数
急,在线等——求把这个简单的c/c++函数封装成c#函数C/C++ code_declspec(dllexport) int agaus(float a[], f
急,在线等——求把这个简单的c/c++函数封装成c#函数
C/C++ code_declspec(dllexport) int agaus(float a[], float b[],float c[],int n){}
我封装成下面的c#函数,结果调试错误,告知我函数签名不匹配:
C# code[DllImport("agaus.dll")]public static extern int agaus(float[] a, float[] b, float[] c, int n);
多谢各位了~~
[解决办法]http://www.cnblogs.com/ColdFish_Pegasus/archive/2011/10/09/2203523.html
今天最后一贴了
睡觉啊
[解决办法]http://topic.csdn.net/u/20090506/10/1614e8dc-ba43-48c0-8278-f3b7fc7ff815.html
[解决办法]另外你c++的声明,没有指定stdcall,所以你调用时,要用默认的CallingConvention.Cdecl方式
[解决办法]都是牛人!