PDA

View Full Version : vb - cards.dll : file not found


FatboyPat
03-04-2005, 10:09 PM
Hi all im a noob when it comes to vb, and im trying to figure out how to make a card game using the cards.dll file.

right now i have a module

Declare Function cdtInit Lib "Cards32.Dll" (dx As Long, dy As Long) As Long

Declare Function cdtDrawExt Lib "Cards32.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 clr As Long) As Long

Declare Function cdtDraw Lib "Cards32.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

Declare Function cdtTerm Lib "Cards32.Dll" () As Long

and a main form_load that looks a little like this :
Private Sub Form_Load()
Dim DUMMIE As Integer

DUMMIE = CdtInit(100, 100)

End Sub

Well.. it tells me it cant find the file. now i know that theres a 16 bit file thats just "cards.dll" and ive tried that two, and i have tried to put "C:\Windows\System\Cards.dll" but that didnt work either... anyone know whats going on?

shmoove
03-05-2005, 09:58 AM
Is the dll registered on the system (ie, have you or anyone run regsvr32 on the dll)?

shmoove

tboss132
03-07-2005, 11:14 AM
Where did you get the cards.dll file from? If you just copied it from someone, then you need to register it on your PC. like shmoove suggested, go to a command line and type regsvr32 [dll path and filename]

FatboyPat
03-07-2005, 08:56 PM
well i didnt take the file from anyone... and it IS on my computer. can you tell me how to "regester" the dll file?

FatboyPat
03-07-2005, 09:46 PM
Nevermind, I tried registering it with regsvr32, but only got an error (I assume because the file is already registered?)

I'm on Win98SE using VB 6.0 if that matters.


LoadLibrary("c:\windows\system\cards.dll") failed.
GetLastError returns 0x0000001f.

tboss132
03-08-2005, 08:36 AM
Not sure, but the file is probably corrupt. You can upload a copy and i'll see if i can register it on my PC.

FatboyPat
03-08-2005, 10:26 PM
Here you go. :)

tboss132
03-10-2005, 03:41 PM
Well, i tried registering it and i also got an error message
"Cards.dll was loaded but the DllRegisterServer entry point was not found"
I guess this file is corrupt. I'll advise you to get another copy.

FatboyPat
03-10-2005, 11:16 PM
Well thats good news :) at least i know whats wrong now.

Anybody out there want to send me a copy that they know works? that would be wicked-cool :cool: :)

Unit
03-11-2005, 02:59 AM
This dll cannot be registered and does not require to be registered. Only dlls that export COM/OLE/ActiveX objects need to be registered.

It has the following functions on an XP box.
cdtAnimate
cdtDraw
cdtDrawExt
cdtInit
cdtTerm

I am not familiar with VB. Is this the correct case? Your definition had cdtInit.

DUMMIE = CdtInit(100, 100)

try just cards.dll instead of cards32.dll

FatboyPat
03-16-2005, 04:42 PM
Yeah i tried that.. i know my comp has cards.dll and NOT cards32.dll.. arrrrrrrrrrrghhhhhhhhh!! damn these card games :)