We help IT Professionals succeed at work.

Creating a quiz

andyw27
andyw27 asked
on
252 Views
Last Modified: 2010-04-01

Hello,

I need to create a simple quiz using C++ MFC.

I'm essentially after ideas (articles, etc..) on how this might be achieved?

Thanks.
Comment
Watch Question

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
WHat kind of quiz?

Wht do you want the program to do?

mlmcc

Author

Commented:

Probably end up being a multiple choice thing
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
Are you trying to simply print a quiz?  Do you want an interactobve quiz?

mlmcc
Deepu AbrahamR & D Engineering Manager

Commented:
Quiz Ideas

1. You could create a MFC Dialog application (Ideally a property page)
2. You should derive a class from class CPropertyPage for each page in your property sheet.
3. You need to create a CPropertySheet object and add each property page objects into the property sheet.(CPropertySheet::AddPage)
4. Display the property sheet by calling CPropertySheet::DoModal()
5. Make property sheet as a wizard, CPropertySheet::SetWizardMode() ( Good for your Quiz application)
6. Add controls to the dialog box ( radio buttons/check boxes & buttons like next,previous,quit/close etc)
7. You can store all your questions and answers in a binary flat file or an mdb file and read from those and add it in to your dailog      boxes.

Hope it gives you a start.

Best Regards,
DeepuAbrahamK

Author

Commented:

Could elaborate abit on what you mean by a property page ?
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Deepu AbrahamR & D Engineering Manager

Commented:
You could refer:
http://www.functionx.com/visualc/controls/propsheet.htm

Best Regards,
DeepuAbrahamK
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.