Using the winscard.dll PC/SC API in Visual Basic 6

Visual Basic Projects 7 Comments »

Here's some example code I wrote in July of 2008 that shows how a Visual Basic program can interact with a smart card reader using the winscard.dll PC/SC API. Most of the functions contained in winscard.dll I was able to get working except SCardTransmit which would always return ERROR_GEN_FAILURE (0x1F) or SCARD_E_COMM_DATA_LOST (0x8010002F) for some reason and I was never able to figure out why. If there's anyone out there who's interested in writing a VB implementation of the PC/SC API this would probably be a good place to start.

Download vb_pcsc_api.zip (July 12, 2008)


Read the rest of this entry »

Visual Basic to HTML Converter

PHP No Comments »

Because I've been bringing a lot of my old Visual Basic code online recently I was looking for a way to easily display Visual Basic code on a webpage. I needed something that could take my existing Visual Basic code, convert it to HTML, apply color coding to it (which is technically called syntax highlighting), and then display it in valid XHTML. I was preferably looking for something written in PHP rather than relying on an external program, website, or VB Add-In. Since I couldn't find anything satisfactory on the web I decided to write my own.

Read the rest of this entry »

Entries RSS Comments RSS Log in