Results 1 to 9 of 9

Thread: cards.dll part2 - parksie and others

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    why wont LoadLibrary("cards.dll") work on a windows 98 machine? it has worked on NT and 2000. it attempts to load it but returns a FALSE everytime.

    i did a findfile and i know the computer has cards.dll in the windows system folder. i also tried placing a copy of cards.dll in the debug folder of my project.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Do you have a Win9x copy of cards.dll? If it works with Solitaire and that lot I suppose it should work
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    yep its got a win98 copy, its in the c:/windows/system directory

    just wont open!!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    i called GetLastError after the LoadLibrary and it returned 31 , if that helps anyone at all.

    maybe i need a 32 bit version of cards.dll, if anyone has this and would post it, i would greatly appretiate it!

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Not sure about the usefulness of that one
    Code:
    //
    // MessageId: ERROR_GEN_FAILURE
    //
    // MessageText:
    //
    //  A device attached to the system is not functioning.
    //
    #define ERROR_GEN_FAILURE                31L
    from WinError.h
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    i called GetLastError after the LoadLibrary and it returned 31 , if that helps anyone at all.

    maybe i need a 32 bit version of cards.dll, if anyone has this and would post it, i would greatly appretiate it!

  7. #7

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    well now i got a copy of cards32.dll and load that. it loads fine but when i call the init function or draw it gives this error:

    "Debug Error!

    The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention."

    if i press ignore the program will go on and still work, but obviously i dont want this error here.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    123
    well it kinda seems like im talking to myself here but if i compile the project in Release mode the error isnt there so who really cares!

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Make sure that the function pointer you're using has the __stdcall attribute set.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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