scard32.dll

A

Abhay

Scardcommand takes parameter namely
Byref Handle long ,
Cmd string ,
Cmdlen long ,
Datain string ,
DataInlen long,
DataOut String,
DataoutLen long
and returns a response which is zero on each successful
operation. This is compatible with VB6.0 and works.
When invoking sames command with dllimport in VB.NET
returns error which is misc. whats the response and
Pls HLP
 
K

Ken Tucker [MVP]

Hi,

The new integer is the same as the old long. Try changing the longs
to integers.

Ken
 
H

Herfried K. Wagner [MVP]

* "Abhay said:
Scardcommand takes parameter namely
Byref Handle long ,

Replace 'Long' with 'IntPtr'
Cmd string ,
Cmdlen long ,
Datain string ,
DataInlen long,
DataOut String,
DataoutLen long

Replace all 'Long' with 'Int32'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top