Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform a c++ function into vfp script
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01163785
Message ID:
01163788
Views:
8
Thank borislav,
 /*! \brief Extract the public data files from a SIS image and parse the content.
  *
  * This function will extract the two public files - the PBDF (Public Data File) and the
  * ISDF (Issuer Data File) - from the SIS image. PBDF and ISDF are parsed and the relevant
  * data fields are made available in 2 data structures, resp. of type Pbdf and Isdf.
  *
  * \param pucBuffer    the buffer (SIS_LEN bytes) containing the SIS card image read
  * \param pxPbdf       the resulting PBDF file
  * \param pxIsdf       the resulting ISDF file
  *
  * \note  dates are always in "YYYYMMDD" format
  * 
  * \return ERR_OK if ok
  * \return ERR_PARAM if parameter error
  * \return ERR_BNCS if SIS parse error
  * \return ERR_INTERNAL if internal error
  *
  */
SISPUBLIC_API SisPublicError SisPublicParse(const unsigned char *pucBuffer, Pbdf *pxPbdf, Isdf *pxIsdf);
euh... and this ?...:)


bernhart




>>Hi all
>>
>>I must transform
>>
>> /*! \brief Read the relevant 404 bytes from the SIS card
>>  *
>>  * This function reads the complete relevant content (404 bytes) of the SIS card and copies the
>>    raw content in the buffer.
>>  * This function returns PC/SC return codes. Depending on the OS winscard.h or pcsclite.h are
>>    included to
>>  * make sure the return codes are properly defined.
>>  *
>>  * Card readers: this function will try to read a SIS card in the first available (according to PC/SC card reader enumeration), supported card reader.
>>  * Check the product documentation for a list of supported card readers.
>>  *
>>  * \param pucBuffer the buffer (SIS_LEN bytes) where the SIS card will be stored
>>  *
>>  * \return PC/SC error code
>>  * \return SCARD_S_SUCCESS if ok
>>  * \return SCARD_E_INSUFFICIENT_BUFFER if pucBuffer is NULL
>>  *
>>  */
>>SISPUBLIC_API LONG SisPublicReadCard(unsigned char *pucBuffer)
>>
>>
>>
>>I tried
>>
>>
>>LOCAL cValue
>>DECLARE STRING SisPublicReadCard IN SisPublic.dll
>>cValue = SisPublicReadCard()
>>WAIT WINDOW cValue
>>
>>
>>Is just ?
>>
>>thank in advance...
>>
>>bernhart
>
>Nope, it must be:
>
>DECLARE LONG SisPublicReadCard IN SisPublic.dll STRING @
>STORE REPLICATE(CHR(0),404) TO cTest
>? SisPublicReadCard(@cTest)
>? cTest
>
>
>and the function returns
>PC/SC error code
>SCARD_S_SUCCESS if ok
>SCARD_E_INSUFFICIENT_BUFFER if pucBuffer is NULL
>You must know values for these predifined constants (they must be defined in some of header files that comes with that dll).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform