8 Replies - 4575 Views - Last Post: 10 January 2008 - 01:27 AM Rate Topic: -----

#1 boink  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 07

change cards.dll

Posted 01 November 2007 - 12:52 PM

i want to change the bitamps of cards that are in the cards.dll file, how can i do it?
can i do it with visual studio?
Is This A Good Question/Topic? 0
  • +

Replies To: change cards.dll

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1634
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: change cards.dll

Posted 01 November 2007 - 01:01 PM

Do you mean change the backs of the cards? Because there are like 16 different possible card backs. If you mean replace the entire image with one of yours, since its a compiled DLL you don't have access to the code to do that.
Was This Post Helpful? 0
  • +
  • -

#3 boink  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 07

Re: change cards.dll

Posted 01 November 2007 - 01:21 PM

View PostPsychoCoder, on 1 Nov, 2007 - 01:01 PM, said:

Do you mean change the backs of the cards? Because there are like 16 different possible card backs. If you mean replace the entire image with one of yours, since its a compiled DLL you don't have access to the code to do that.



yes, i want to cahnge the imgae of the cards. insted of a reguler 4 diamonds i want for example to put 4 cars or some image in my computer.
you sure i cant cahnge the pictures?
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1634
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: change cards.dll

Posted 01 November 2007 - 01:30 PM

I do believe the only way you could do that would be to get your hands on the source for the DLL, and Microsoft just doesn't make that stuff available. Ive done some reading on this and from everything Ive found, you cannot directly access the bitmaps of the cards in the DLL file, so I don't see how you could change them.
Was This Post Helpful? 0
  • +
  • -

#5 boink  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 07

Re: change cards.dll

Posted 01 November 2007 - 01:34 PM

View PostPsychoCoder, on 1 Nov, 2007 - 01:30 PM, said:

I do believe the only way you could do that would be to get your hands on the source for the DLL, and Microsoft just doesn't make that stuff available. Ive done some reading on this and from everything Ive found, you cannot directly access the bitmaps of the cards in the DLL file, so I don't see how you could change them.



=/ ok. i will find anther way to build my game.

tnx for your help =).

This post has been edited by boink: 01 November 2007 - 01:38 PM

Was This Post Helpful? 0
  • +
  • -

#6 gogole  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 131
  • Joined: 17-July 07

Re: change cards.dll

Posted 02 November 2007 - 08:02 AM

someone should yell at microsoft "it is just solitaire damn it ".ha ha
Was This Post Helpful? 0
  • +
  • -

#7 boink  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 07

Re: change cards.dll

Posted 04 November 2007 - 12:58 PM

ok i changed the pictures of cards.

but now i have anther problem..
how can i change thier (cards) size?
Was This Post Helpful? 0
  • +
  • -

#8 nc3b  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-January 08

Re: change cards.dll

Posted 08 January 2008 - 09:31 AM

Hey boink, how did you change the pictures?
Was This Post Helpful? 0
  • +
  • -

#9 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: change cards.dll

Posted 10 January 2008 - 01:27 AM

Quote

Ive done some reading on this and from everything Ive found, you cannot directly access the bitmaps of the cards in the DLL file, so I don't see how you could change them.

Of course you can change them.
The Bitmaps are simply resources placed in a DLL File.

Since DLL files follow the PE Format, any Resource Editor can be used to view,extract and even modify the images.
I use ResourceHacker to modify preexisting resources. I've attached a screenshot to make it clear.

Be careful though, backup the original copy of cards.dll
And if you're planning on releasing it to end-users, remember that they will not notice the difference.
cards.dll is a part of Windows, which means everyone has the same set of the original Bitmap files.
You will have to replace the cards.dll on every machine.

You could however use your own set of card sets instead of the ones cards.dll provides.
Extract all the Cards using a Resource Editor and modify the images to suit your style.
Once you've made the changes, use these images instead.
I'd recommend the use of this method as it doesn't involve anything that changes Windows DLL files.

Here's the Screenshot.
Attached Image
Was This Post Helpful? 1

Page 1 of 1