关于调用动态链接库DLL中函数的返回值的取值问题
用一个RefComm类
public class RefComm
{ [DllImport("TerAccDll.dll", EntryPoint="GetTerTime ",CharSet=CharSet.Auto,CallingConvention=CallingConvention.StdCall)] public static extern int GetTerTime (int a,int b); }
调用一个动态链接库TerAccDll.dll.
动态链接库的GetTerTime函数一个取时间函数.其参数结构为
function GetTerTime (
TerNo:integer;
var y,Mon,d,h,min,s,w:integer;
Port:integer =1):integer;
参数
TerNo 为一个输入参数。
Y,Mon,d,h,min,s,w 为返回日期和时间,分别为年,月,日,时,分,秒,星期。其中星期天为0,星期一为1,依此类推。
Port 为一个输入参数。
如果函数调用成功,返回值为1。
请问调用GetTerTime这个函数时传入TerNo,Port两个参数之后 怎么取Y,Mon,d,h,min,s,w等7个返回值啊?