-
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.
-
Do you have a Win9x copy of cards.dll? If it works with Solitaire and that lot I suppose it should work :confused:
-
yep its got a win98 copy, its in the c:/windows/system directory
just wont open!!
-
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!
-
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 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!
-
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.
-
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!
-
Make sure that the function pointer you're using has the __stdcall attribute set.