Forget what I just stated....I am investogating for you
Main Topics
Browse All TopicsDear Experts,
I dowload winscard.dll(Version 5.1.2600.2180) from online to use inside my program. When I try to register it in both system32 and my project folder, I faced the following error.
"winscard.dLL was loaded, but the DllUnregisterServer entry point was not found."
I can't even unregister it .
Please help me to solve the problem..
Thanks banches in advance..
Regards.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I just found an interesting tool on the Internet which may help you, and itd free.
Search for "Emsa Register Dll Tool"
I am not allowed to post the link here, but find it on the Internet using a "Google" search (or some other!) and give it a go. If it does not help I will work on some VB6 code for you.
Hello Craisin,
Thank you for your solutions. Sorry for my delay reply. I was busy with other projects yesterday. As you metioned, I just tried to register at system instead of system32.
It is failed also.. For another way, I downloaded Emsa tool. But when I went to their site and got the activation code, I couldn't find the icon to press for generating actiavation code. Are you sure that that Emsa tool is still free of charge? How could I do next?Waiting for you reply.
Thank you again & Regards.
Dear Craisin,
I tried to register & unregister winscard.dll by using EMSA Register Dll Tool.
I found the following error message.
"Selected file is not a valid ActiveX!".
Does it mean that I can't use winscard.ll (because of not valide ActiveX)?
Is there any way to register not a valid ActiveX into system32?
Thanks bances!
Regards.
I have found the answer for you.
Winscard.dll is a windows native dll for handling smartcards. It is present in your system32 folder, but is NOT registerable via Windows regsrvr32.exe
Good advice would be to not try to use the winscard.dll directly in your vb application, instead creating a win32 dynamic dll which handles the functions of winscard and use it in your project.
However if you don't want to go that way, just make sure the DLL is in your Windows\System32 subdirectory (so windows can find it) then use the code calls to the DLL directly as showing in the VB code found at the following link.
http://www.activevb.de/rub
You will have to register as a user of vbForums if you are not already a member (free)
It is a German dite, but I succeeded in registering then accessing the link I have just mentioned.
I think that will solve your problem. :-)
Dear Craisin,
Thanks a lot..
I just fixed my problem.
Yes you are right. Winscard.dll doesn't need to register to use.
Actually I am really a careless person..
My code statement is shown as below :
RetCode = SCardListReaders(hContext,
After finsh SCardListReaders, the function should response the connected reader list..
I didn't declare the following variables inside my program and I didn't get the reader list.
'-------------------------
Dim sReaderList As String * 256
Dim sReaderGroup As String
Dim ReaderCount As Long
'-------------------------
Now I have got the connected readers after I decleared them . :P
Thank you very much.
Business Accounts
Answer for Membership
by: craisinPosted on 2009-09-03 at 07:00:53ID: 25250734
Have you tried it in "System" subdirectory rather than System32?