Results 1 to 6 of 6

Thread: Invalid entry point "Cards32.dll"

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    State of Confusion
    Posts
    133

    Question

    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

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Are you sure that the name of the function is also CdtInit in the 32 bit dll?
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    State of Confusion
    Posts
    133
    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?

  4. #4
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987

    Talking

    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.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    State of Confusion
    Posts
    133
    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...

  6. #6
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width