Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RomP

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    Sorry for the delay in responding. Yes, the whole issue was because of my sizeof(pbSend) being wrong . Its working perfect when I pass cbSendLength as 5 .
    Thanks a lot :) .
  2. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    Oh, then it shud be :

    BYTE pbGetFirstNameEn[] = { 0x00,0xB0,0x00,0x09,0x22}; // Get English First Name

    However, this returns the same output. The first 4 bytes are part of the APDU commands...
  3. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    Yes, it is the same SCardTransmit that MSDN describes.
    I had missed out the size of data in the send buffer. I am expecting it to return 32 bytes of first name, so i have replaced it with :

    BYTE...
  4. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    In my actual code, I was checking for iReturn values. Both SCardEstablishContext and SCardConnect have worked.
    Thanks for the feedback, I have included code tags.
  5. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    I have edited my original post with the actual code.
  6. Replies
    14
    Views
    2,422

    Re: ScardTransmit returning junk value

    I'm sorry. You can read that whole statement as:
    printf ("\npbRecv %02X ",pbRead[i]);
  7. Replies
    14
    Views
    2,422

    [RESOLVED] ScardTransmit returning junk value

    Hi,

    I am trying to read data from a smartcard using scardTransmit.
    But the data read is always 6D 00 CC CC (Be it for name, expiry date or any other data, always the same.)
    This is probably some...
Results 1 to 7 of 7


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center