问一个delphi中函数声明转换成C++的写法
delphi中有一dll导出函数如下
procedure ImportTransCodeToThis(HotelDate: TDateTime; DeptCode: PChar; DeptDesc:
PChar; ProfitCenter: PChar; ProfitDesc: PChar; Shift: integer; TransCode: PChar;
TransDesc: PChar; Amount: Currency; Comment: PChar; ErrorCode, ErrorMessage:
PChar); stdcall;
我把他在vc中调用,则写成以下c++的声明,但明显第一个日期类型写错了。不知道应该如何写?
typedef void (__stdcall ImportInvtToThis)(float HotelDate, char * DeptCode, char* DeptDesc, char* profitCenter, char* profitDesc, int shift, char* InvtCode, char* InvtDesc, float Amount, char* Comment, char* ErrorCode, char* ErrorMessage);