Click to See Complete Forum and Search --> : Invalid entry point "Cards32.dll"
CadDragon
Dec 8th, 2000, 01:48 PM
Can anyone help me? I'm very new at VB and I'm having trouble using the Cards.dll file with VB6. I know that I can't use the 16-bit version of the dll, but when I try to use the 'Cards32.dll' library I get a 'Invalid entry point' error on my function calls. Anybody know what I'm doing wrong?
'This is declared in a module
Declare Function CdtInit Lib "CARDS32.DLL" (nWidth As Long, nHeight As Long) As Long
'Called from my Form_Load Event
x% = CdtInit(nWidth, nHeight)
Any help would be greatly appreciated
oetje
Dec 8th, 2000, 03:12 PM
Are you sure that the name of the function is also CdtInit in the 32 bit dll?
CadDragon
Dec 8th, 2000, 03:25 PM
No, not exactly, that's more or less what I would like to know. When I found the information to begin with, it was followed with "Be sure to compile in 16-bit or the 'Cards.dll' will not work, else use the 32-bit version 'Cards32.dll'. Well, in that, I assumed that the calls would be the same. (Of course, I know that ASSUME makes an 'ASS' of 'U' and 'ME) Don't know what else to say, other than, does anybody know any calls to the 32-bit version 'Cards32.dll' that ships with NT?
YoungBuck
Dec 8th, 2000, 04:05 PM
Have you checked your computer to be sure you have the Card32.dll installed?? Usually when you receive an "Invalid entry point" error it means that dll doesn't exist, or doesn't exist in the directory expected.
CadDragon
Dec 8th, 2000, 07:29 PM
Yeppers, I had a 32-bit version already installed, but just to be sure, I downloaded another copy. It didn't work. Then I renamed the copy and changed my 'Lib' reference to the new filename to be sure I had no conflicts. Still no dice. <confused> The only other thing I can guess is that the 32-bit dll has different function calls than the 16-bit. In which case, I don't know the new calls. I really do appreciate the replies, however. Anyone here been able to successfully call functions to the 32-bit 'Cards32.dll'? If so, I could use help. Thanks again...
Keithuk
Jun 23rd, 2004, 06:58 AM
Just make sure the the Cards32.dll is Microsoft's. I spent months trying to find out why my CdtInit wouldn't initialise.
I found that I was using someone elses Cards32.dll, similar file size but not Microsoft's.
You can use Cards.dll that comes with Win2k/XP. They use the exact same functions and calls as Cards32.dll.
By the way x% = CdtInit(nWidth, nHeight) should be Long not Integer.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.