Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to develop  Solitaire

Posted on 1998-09-03
6
Medium Priority
?
239 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

916 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