cardgames.dll - Windows 7

Everything else that doesn't fall into one of the other PB categories.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

cardgames.dll - Windows 7

Post by netmaestro »

Anyone know why LibraryFunctionName() fails here:

Code: Select all

If OpenLibrary(0, "cardgames.dll")
  ExamineLibraryFunctions(0)
  While NextLibraryFunction()
    Debug LibraryFunctionName()
  Wend
  CloseLibrary(0)
EndIf
LibraryFunctionAddress() gives the same failure.
BERESHEIT
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: cardgames.dll - Windows 7

Post by Fluid Byte »

This DLL doesn't even load for me. Seems it's not part of the system anymore on Windows 7.

The only instance I could find on the whole disk is a rather obscure location:

Code: Select all

C:\Windows\winsxs\amd64_microsoft-windows-s..nboxgames-cardgames_31bf3856ad364e35_6.1.7600.16385_none_9888c15ccd6f74c7\CardGames.dll
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: cardgames.dll - Windows 7

Post by netmaestro »

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.
BERESHEIT
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: cardgames.dll - Windows 7

Post by DarkDragon »

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 :lol: - so its a .NET dll maybe. Or COM.
bye,
Daniel
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: cardgames.dll - Windows 7

Post by srod »

It is a resources dll on Vista and Win 7 and appears to hold no code.
I may look like a mule, but I'm not a complete ass.
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Errors in accessing cardgames.dll

Post by SkyManager »

Does anybody have any idea for my error :?:

Error appears when running
Debug LibraryFunctionName()
Error message
Invalid memeory access. (read error at address 1705531981)
My PC is running Vista Business 32 bits English version + service pack 2

Code: Select all

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
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: cardgames.dll - Windows 7

Post by Rook Zimbabwe »

AFAIK there is no cards set in the DLL on vista or 7...
I used an image from this site:

http://www.istartedsomething.com/2006/12/page/2/« Back to results

and made mine own... it took a little cutting and pasting to make it work out right...
Of course, these and every other games in Windows Vista are not actually designed by Microsoft internally, but outsourced through Oberon Games.
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Errors in accessing cardgames.dll

Post by ts-soft »

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.
Image
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Re: cardgames.dll - Windows 7

Post by SkyManager »

After inserting the suggested function, a new error appears
[10:57:28] [ERROR] Invalid memory access. (read error at address 1719032397)
My test is

Code: Select all

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
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: cardgames.dll - Windows 7

Post by Rook Zimbabwe »

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...
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply