Problem with winscard function 
Author Message
 Problem with winscard function


We are working with embedded VB on CE and a proyect that use winscard
We declare this:

Declare Function SCardStatusW _
Lib "winscard.dll" _
( _
    ByVal hCard As Long, _
    ByVal mszReaderNames As String, _
    ByRef pcchReaderLen As Long, _
    ByRef pdwState As Long, _
    ByRef pdwProtocol As Long, _
    ByRef pbAtr As Byte, _
    ByRef pcbAtrLen As Long _
    ) As Long

And in the procedure this and other variable

Dim abytAttr(255) As Byte

But when use the function ScardStatusW the function return 0 that is OK, the
parameter 6 (abytAttr) is in/out and the parameter 7 return the large of
this arrays, but when we read the array in other position distinct of 0 an
error occurre.

Result = SCardStatusW(lngcard, strReaders, LargoLector, _
lngState, lngActiveProtocol, abytAttr(0),

In VB6 working in W9X/W2000/WXP the declaration and the parameters is iqual,
and working OK.
Do you now if in embedded VB we have that declare different o the parameter
is pass in other way.

Thanks for your answer.
Best regards.

Sun, 18 Sep 2005 22:34:36 GMT  
 [ 1 post ] 

 Relevant Pages 

1. DllInclude mapping for WinSCard.dll...please help

2. One Problem in Calling Static function from Non static function

3. Problem assigning function to function pointer

4. C++ function pointers versus C function pointer problem

5. strange problem occur while trying to access member function through static function

6. DLL function calling problems (explicit - only knowing function name at runtime)

7. rookie problem: problem with LNew function

8. Call a function in a function with name of a function as parameter

9. functions, functions, and more functions!

10. How to use (pointer to function), and function and pointer to (pointer to function)

11. Function question Part 2 ( RUN TIME ERROR PROBLEM )

12. Function Problem


Powered by phpBB® Forum Software