Home > Back-end >  C # call Dll C problem
C # call Dll C problem

Time:09-27

There is such a function in c + +
 
TAP_DLLEXPORT ITapTradeAPI * TAP_CDECL CreateTapTradeAPI (const TapAPIApplicationInfo * appInfo, TAPIINT32 & amp; IResult)

This function returns a ITapTradeAPI class pointer members of the function in the class below
 
Virtual TAPIINT32 TAP_CDECL SetAPINotify (ITapTradeAPINotify * apiNotify)=0

IP virtual TAPIINT32 TAP_CDECL SetHostAddress (const TAPICHAR * and TAPIUINT16 port)=0

Virtual TAPIINT32 TAP_CDECL Login (const TapAPITradeLoginAuth * loginAuth)=0

Virtual TAPIINT32 TAP_CDECL Disconnect ()=0

Virtual TAPIINT32 TAP_CDECL ChangePassword (sessionID TAPIUINT32 * and const TapAPIChangePasswordReq * the req)=0

Virtual TAPIINT32 TAP_CDECL HaveCertainRight (TAPIRightIDType rightID)=0

Virtual TAPIINT32 TAP_CDECL SetReservedInfo (sessionID TAPIUINT32 * and const TAPISTR_50 info)=0

Virtual TAPIINT32 TAP_CDECL QryAccount (sessionID TAPIUINT32 * and const TapAPIAccQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryFund (sessionID TAPIUINT32 * and const TapAPIFundReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryExchange (TAPIUINT32 * sessionID)=0

Virtual TAPIINT32 TAP_CDECL QryCommodity (TAPIUINT32 * sessionID)=0

Virtual TAPIINT32 TAP_CDECL QryContract (sessionID TAPIUINT32 * and const TapAPICommodity * qryReq)=0

Virtual TAPIINT32 TAP_CDECL InsertOrder (sessionID TAPIUINT32 * and const TapAPINewOrder * order)=0

Virtual TAPIINT32 TAP_CDECL CancelOrder (sessionID TAPIUINT32 * and const TapAPIOrderCancelReq * order)=0

Virtual TAPIINT32 TAP_CDECL QryOrder (sessionID TAPIUINT32 * and const TapAPIOrderQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryOrderProcess (sessionID TAPIUINT32 * and const TapAPIOrderProcessQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryFill (sessionID TAPIUINT32 * and const TapAPIFillQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryPosition (sessionID TAPIUINT32 * and const TapAPIPositionQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryClose (sessionID TAPIUINT32 * and const TapAPICloseQryReq * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryDeepQuote (sessionID TAPIUINT32 * and const TapAPIContract * qryReq)=0

Virtual TAPIINT32 TAP_CDECL QryExchangeStateInfo (sessionID TAPIUINT32 * and const TapAPIExchangeStateInfoQryReq * qryReq)=0



So the question to me how to call in the middle of the c # CreateTapTradeAPI methods return a pointer to the class how to deal with this??

At the BBS thanked him great god shows the code of the younger brother
  • Related