Re: SCardTransmit Fails

From: Pieter Philippaerts (Pieter_at_nospam.mentalis.org)
Date: 03/24/04


Date: Wed, 24 Mar 2004 21:44:09 +0100


"Barry Hostead" <b.hostead@ntlworld.com> wrote in message
> Does anyone have any ideas my code for this section of the program is
> listed below.

Can you post the declarations you're using..?

> SendBuff(1) = apduCommand.bCLA
> SendBuff(2) = apduCommand.bINS
> SendBuff(3) = apduCommand.bP1
> SendBuff(4) = apduCommand.bP2
> SendBuff(5) = apduCommand.bP3

It's been a while since I've done VB.NET, but if I remember correctly VB.NET
arrays start at index 0, not 1 [if I'm not mistaken, this was one of the
changes between VB6 and VB.NET]. If this is the case, this may explain why
your cann to SCardTransmit fails.

Regards,
Pieter Philippaerts
Managed SSL/TLS: http://mentalis.org/go.php?sl