In Visual C++ 6.0 SCardStatus Function

I use MFC library...

in Smart Card Library, There is Function that name is ScardStaus...

The function requires 7 parameters...

sixth parameter ( LPBYTE pbAtr ) returns Card's ATR

In my source ScardStaus returns SCARD_S_SUCCESS.

That's meen is 'No problem'..

but definite value, value is null...

In this case, How can I get Atr....

plz, advice T_T

[405 byte] By [freebasta] at [2007-10-3 7:39:11]
# 1
To help you, we needs exact code.Check your code that pbAtr is pointer of array that can contain atr bytes. for example BYTEbAttr[32];pbAtr = pbAtr;
tongki72a at 2007-7-15 2:39:47 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

Thank you ^^;

I solve my problem...

my problem is wrong type APDU..

I send APDU to ASCii code .... (-_- );

ex) C0A40000023F00 -> 0xC0 0x40 0x00 0x00 0x02 0x3F 0x00

(It is exact APDU)

C0A40000023F00 -> 0x43 0x30 0x41 0x30 0x30 0x30 ..... 0x30

(It is My APDU, I don't know ASCii to Hex, It's my mistake...^^)

Thank you for your advice... ^^

freebasta at 2007-7-15 2:39:47 > top of Java-index,Java Mobility Forums,Consumer and Commerce...