473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scard32.dll

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
Nov 20 '05 #1
3 2099
Hi,

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

Ken
------------
"Abhay" <ab********@hotmail.com> wrote in message
news:02****************************@phx.gbl...
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

Nov 20 '05 #2
* "Abhay" <ab********@hotmail.com> scripsit:
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'.
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


--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
please dont post the same thing twice with diffrent names..

"Abhay" <ab********@hotmail.com> wrote in message
news:02****************************@phx.gbl...
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

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2393
by: dev | last post by:
Good Morning, First, I must say that I'm completly newbie about C# and .NET, nevertlessy my company put me on work on a C# projects... So I'm here to ask for help: I have an unmanaged DLL...
1
2621
by: Nidhi | last post by:
when i use the scard32.dll in VB.NET i am facing the problem, but i used same dll in visual Basic6.0. can you tell me the solution how can i use the sacrd32.dll in VB.NET. also tell me how can i...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.