Why won't this work? (cards.dll)

i downloaded some source code today for cards.dll so I can learn about it and make something.  The source doesn't work properly though.  It says it can't find cards.dll!!  The zip is at http://www.huron.net/~jlewis/cards.zip  If anyone could help me out it would be appreciated :)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hi treyjeff

first, i'm sorry but i can't find the zip, but remember to
copy the dll in the windows\system dir to use it
The dll is not shipped with the Zip-File, thats why you cannot find it.
Ask the programmer of the Sources.
The dll is part of Windows, so the program should be able to find it.  I can't figure out why that particular project returned that error.  It did the same thing on my machine.  However, I found the almost exact same demo at http://www.pcworld.com/fileworld/file_description/frameset/0,1458,3718,00.html and it worked perfectly.  Give it a shot.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Try to register the dll

Open a Dosbox and enter:
  regsvr32 cards.dll

You have to be in the directory where the dll is located.

It is possibly that the regsvr32 has a different name on win95 (regserver or so... ??)
I am using NT4 (try to find regsvr in the system directory if the command does not work)
treyjeffAuthor Commented:
I get an error in the download file as well.  I tried regsvr32 as well and got an error when trying to register the dll.
The file that you should be using is Cards32.dll

treyjeffAuthor Commented:
I have cards.dll and I tried to register it on my system but I got some eror message.
Great.  You should still use Cards32.dll in Windows95.  In WinNT, the 32bit library is named Cards.dll, but in Windows 95, it is 16bit.  This will lead to compatibility problems in your code if you run in both environments.

But, if you insist on using Cards.dll (a 16-bit file), you should know that the DLL is not an OLE server.  Therefore, it cannot be used with RegSvr.  Furthermore, the DLL exports only five functions.

You should use the following declarations in your code:

Private Declare Function cdtInit Lib "Cards.dll" (dx As Long, dy As Long) As Long
Private Declare Function cdtDrawExt Lib "Cards.dll" (ByVal hdc As Long, _
   ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, _
   ByVal ordCard As Long, ByVal iDraw As Long, ByVal cls As Long) As Long
Private Declare Function cdtDraw Lib "Cards.dll" (ByVal hdc As Long, ByVal X As Long, _
   ByVal Y As Long, ByVal iCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
Private Declare Function cdtAnimate Lib "Cards.dll" (ByVal hdc As Long, ByVal iCardBack As Long, _
   ByVal X As Long, ByVal Y As Long, ByVal iState As Long) As Long
Private Declare Function cdtTerm Lib "Cards.dll" () As Long


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
treyjeffAuthor Commented:
I don't have cards32.dll on my system, why is that?  When I bought the computer it had W95 installed on it.  The only cards.dll file is exactly that one.
Then use the Cards.dll, which is the library that the declarations that I provided refer to.  Just remember that if you get a "Bad DLL Calling Convention" or some other simliar error when you call to one of the functions, to change the long data types to integers.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.