

This function takes the following arguments: cdtInit: This function initializes the cards library, and must be called first.ĭeclare Function cdtDraw Lib " cards.dll" ( ByVal hDC As IntPtr, ByVal x As Integer, _īyVal y As Integer, ByVal Card As Integer, _īyVal Type As Integer, ByVal clr As Integer) As Integer.Ĭards.dll exposes four functions and one sub routine. If you are not familiar with the cards library, I recommend you read Matt Pietrek's article on the subject. There are many good articles on the net on how to use the Cards dynamic link library. This project uses the Cards.dll library to draw the playing cards. I really liked the interface he used, so I decided to code a modern version of his original FreeCell Game. It still works today on 32 bit Windows XP and Vista, but it is a 16 bit application, so it can't run on Vista or XP 64. Allen programmed and published one of the better FreeCell games available for Windows. There are many good articles on the net on how to use the Cards dynamic link library, so I thought it would be fun to make my favorite one player card game, FreeCell.
