方法的类型签名与 PInvoke 不兼容
extern "C" _declspec(dllexport)end begin(int _n,int _m,int _s,int _t,int a[],int b[],double c[]);
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
end begin(int _n,int _m,int _s,int _t,int a[],int b[],double c[])
{
n = _n;
m = _m;
s = _s;
t = _t;
init(a,b,c);
Dijstra();
//result = output();
return output();
}
以上是VC代码
//(int _n,int _m,int _s,int _t,int a[],int b[],double c[]);
end temp = begin(3,3,0,2,a,b,c);
Response.Write(temp.data);
以上是C#代码..
报的错:
方法的类型签名与 PInvoke 不兼容
求解