Delphi with SmartCards, RFID, PC/SC

Posted on 2009-02-19
Last Modified: 2012-06-21

I am looking for a preferably working example on how to program smartcards, I am not familiar with how they work, and so far I have only been able to extract serial numbers...

I wish to implement support for smartcards with winscard.dll, and I will set 500 points to this question if anyone is able to provide me a working example...

I also need a way to access the Masterfile, read and write.
Question by:joepezt
    LVL 31

    Accepted Solution

    Smartcard programming is rough - don't expect to crank out a product in a short period of time in most cases.

    Here's a good starter tutorial for using winscard:

    Here are a few more good starting articles - there is some code examples and code usage information in there, not sure how much of it you will find useful or not.  Note many of these have multiple tiered links to other pages that you may find useful.
    LVL 2

    Author Comment

    thank you, not a fully solutions, but it sohuld be ok for now, just hope it will give me some more starting pooints
    LVL 31

    Expert Comment

    Like I said, smartcard programming is pretty rough.  You're not likely to find much for code examples out there because most of it will be proprietary.  It starts off looking pretty simple until you realize that it is one of the more complex things to work on, depending how far into it you get for your product.  Really the best way to go about this is to just take the time and really learn it by reading it and doing what you can to piece things together into your own code for learning.  

    The company I used to work for had worked on their code for over 25 years with half a dozen very talented developers - and pretty much all it did at the end of the day was handle certificates and single sign-on.  They were one of the leaders because they were more heavily integrated into various products and were able to try to work through stability and compatibility issues.
    LVL 2

    Author Comment

    basically, I know nothing at all about these, either they are smartcards or RFID cards, they both run pC/SC, rfid can run in legacy mode, however.. we got some cards here I would likee to study to see what the applications are doing to the cards in order to store data I know some of these cards can ecen execute code

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now