c++中的类型定义如下:typedef struct tagRDCHisValue
{
double value;
int state;
struct _timeb time;
}RDCHisValue, *pRDCHisValue;dll函数如下,用到了struct _timeb类型RDCAPI RDCERR RDCCvtTime( const char* StrTime, struct _timeb* Result );
/*
功能: 将字符转换成相应的_timeb格式的时间,串格式要求“1999/11/11/10/20/30”
输入参数:“年/月/日/时/分/秒”,“年:月:日:时:分:秒”,“年-月-日-时-分-秒”
输出参数:_timeb
返回值:
*/现在想知道在delphi中用什么类型对应struct _timeb类型
delphi中
function RDCCvtTime(StrTime:String; ____此处如何写_______): integer; external 'mydll.dll'
{
double value;
int state;
struct _timeb time;
}RDCHisValue, *pRDCHisValue;dll函数如下,用到了struct _timeb类型RDCAPI RDCERR RDCCvtTime( const char* StrTime, struct _timeb* Result );
/*
功能: 将字符转换成相应的_timeb格式的时间,串格式要求“1999/11/11/10/20/30”
输入参数:“年/月/日/时/分/秒”,“年:月:日:时:分:秒”,“年-月-日-时-分-秒”
输出参数:_timeb
返回值:
*/现在想知道在delphi中用什么类型对应struct _timeb类型
delphi中
function RDCCvtTime(StrTime:String; ____此处如何写_______): integer; external 'mydll.dll'
struct_timeb = record
end; tagRDCHisValue = record
value : Double;
state : integer;
time : struct_timeb;
end;
pRDCHisValue = ^tagRDCHisValue;
function RDCCvtTime(StrTime:String; pValue:pRDCHisValue): integer; cdecl;external 'mydll.dll';