Solved

How to develop  Solitaire

Posted on 1998-09-03
6
201 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

770 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