日期:2014-05-17  浏览次数:20746 次

C# 怎么调用C++写的DLL函数里带着省略号参数
这是C++写的函数格式,
extern __declspec(dllexport) void aa(int num,...)

现在请问下,这个要在C#里边该怎么调用呢。

------解决方案--------------------
C# code
[DllImport("msvcrt.dll")]
public static extern void aa(int format, __arglist);

------解决方案--------------------
调用举例:
如果第二个参数为空,则
C# code
aa(1,__arglist());