像function GetBatchNo(const mCertifyInt: CertifyInt): BatchNoInfo; stdcall; 這個宣告。
請問是說該函式函式名是GetBatchNo,他的引數mCertifyInt是CertifyInt型別的,
這個函式的回傳值是BatchNoInfo這個型別。是這個意思嗎?
引數的型別和回傳值的型別如下,請問我要用c++呼叫的話。該如何在c++里寫這個函式指標,來宣告這個函式。才能夠正確呼叫哪?
// ************************************************************************ //
// Namespace : CertifyInt:CertifyInt
// ************************************************************************ //
CertifyInt = class
private
FcardPassword: WideString; // 購藥卡密碼
FmedCardNo: WideString; // 購藥卡號
published
property cardPassword: WideString read FcardPassword write FcardPassword;
property medCardNo: WideString read FmedCardNo write FmedCardNo;
end;
// ************************************************************************ //
// Namespace : BatchNoInfo:BatchNoInfo
// 批單資訊
// ************************************************************************ //
BatchNoInfo = class
private
FstateFlag: WideString; //0-回傳成功,1-回傳失敗,2-未授權
FserialNo: WideString; //回傳識別該批單號的交易流水號,必須在藥店資料庫中永久保存
FbatchNo: WideString; //回傳的批單號
published
property stateFlag: WideString read FstateFlag write FstateFlag;
property serialNo: WideString read FserialNo write FserialNo;
property batchNo: WideString read FbatchNo write FbatchNo;
end;
uj5u.com熱心網友回復:
CertifyInt是delphi自己的類,你用不了uj5u.com熱心網友回復:
這個理解正確,但那兩個型別都是Delphi的class,c++用不了。。
要不你就轉用record型別
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/157132.html
