|
-
Apr 13th, 2001, 03:50 PM
#1
Thread Starter
Lively Member
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.
-
Apr 13th, 2001, 04:22 PM
#2
Monday Morning Lunatic
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
-
Apr 13th, 2001, 04:30 PM
#3
Thread Starter
Lively Member
yep its got a win98 copy, its in the c:/windows/system directory
just wont open!!
-
Apr 13th, 2001, 05:37 PM
#4
Thread Starter
Lively Member
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!
-
Apr 13th, 2001, 05:43 PM
#5
Monday Morning Lunatic
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
-
Apr 13th, 2001, 05:57 PM
#6
Thread Starter
Lively Member
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!
-
Apr 13th, 2001, 06:03 PM
#7
Thread Starter
Lively Member
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.
-
Apr 13th, 2001, 06:33 PM
#8
Thread Starter
Lively Member
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!
-
Apr 14th, 2001, 05:46 AM
#9
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|