I'm using Home Premium 32bit. You're using 64bit so I guess there must be a difference between these OS's, no idea why. The OpenLibrary returns a handle here but trying to do anything with it is another story.
Some Windows Vista/7 versions don't offer the standard games anymore. I've got my notebook without Chess Titans, Minesweeper and the card games. And maybe they've recompiled it to support .NET - so its a .NET dll maybe. Or COM.
If Not OpenLibrary(0, "CardGames.dll")
Debug "Error opening card games DLL."
End
EndIf
If Not ExamineLibraryFunctions(0)
Debug "Error examining card games DLL library."
End
EndIf
While NextLibraryFunction()
Debug LibraryFunctionName()
Wend
CloseLibrary(0)
End
SkyManager wrote:Does anybody have any idea for my error
Error appears when running
Debug LibraryFunctionName()
To avoid the Error use CountLibraryFunctions before ExamineLibraryFunctions!
ExamineLibraryFunctions gives a IMA if no functions available.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
If Not OpenLibrary(0, "CardGames.dll")
Debug "Error opening card games DLL."
End
EndIf
CountLibraryFunctions(0)
If Not ExamineLibraryFunctions(0)
Debug "Error examining card games DLL library."
End
EndIf
While NextLibraryFunction()
Debug LibraryFunctionName()
Wend
CloseLibrary(0)
End
I suspect that: starting in VISTA the actual DLL is somewhere else... that is just a handler... you need to research oberon games and look for DLL singned to them on the PC... they would still be in windows somewhere...