Solved

How to develop  Solitaire

Posted on 1998-09-03
6
198 Views
Last Modified: 2013-11-20
Hi ,
There is a game named Solitaire in Windows 95 .
Who knows if it is possible to write a program
like this using MFC. How to create a card
( which kind of MFC ) in Solitaire.

Thanks,
Murphy
0
Comment
Question by:murphylee
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:psdavis
ID: 1321661
Big questions for small points...  50 points is standard for a easy question.

OK, here's the short skinny.

Of course it's possible to write a program of solitare in MFC, but seems very difficult.

You can actually access all of the card fronts and backs if you load up the program in your Visual C++.  Do a 'file open' and select sol.exe as the file name and 'resources' as the type.  Then you will have full access to the cards.  Copy all of the resources and put them into your own project.  Then create CBitmap images and display them in the fashion that you want.

Good luck

Phillip
0
 
LVL 7

Accepted Solution

by:
psdavis earned 10 total points
ID: 1321662
Oops, mean that 'comment' as an 'answer'.

Phillip
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1321663
Sorry I think you might be wrong on this comment Phillip.

I thought the cards live in CARDS.DLL (which lives in Windows\System Directory).  This is a 16 bit DLL on my system.

The API to CARDS.DLL is undocumented and unsupported by MS, but I hear it's been reverse engineered by a few hardy individuals.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:murphylee
ID: 1321664
Hi,techies
I just want to know how to use MFC to createa object acting as a card,
to perform drag and drop with card appearance.
"the API to CARDS.DLL is undocumented and unsupported by MS"
So easy, so simple game , seems very difficult to implement.
MS is the real expert.

thanks for all your answers.
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1321665
You can find a VB example of CARDS.DLL
http://home.computer.net/~mheller/cards.html

This will give you the APIs you need.

Remember this is 16 bit.

I hear there's a CARDS32.DLL which is presumably 32 bit, but I can't find it on my system
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1321666
If you open the solitare program in visual C as a resource, you can get the card faces.  Just tried it.  It's probably the reason there's not a cards32.dll if I'm not mistaken.

Phillip
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now