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:
01163787
Views:
10
This message has been marked as the solution to the initial question of the thread.
>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).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform