Basic DirectX + MFC game project template

When I wrote my first DirectX program, I didn't want to leave out the advantages of MFC. So I was looking for a demo project which used both - DirectX and MFC. Finally I have found one and I have modified it. This project is suitable for games, but not only for them .

The project contains 3 classes:

  • CBasicApp (derived from CWinApp)
  • CBasicWnd (creates the main application's window - derived from CWnd)
  • CGame (generic class - for the game - main code - DirectDraw, DirectInput, DirectSound)

 

Download Project Files (15 KB)



Comments

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today makes data protection a must-have, as we live in a data-driven society -- the digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join Seagate Cloud …

  • Corporate e-Learning technology has a long and diverse pedigree. As far back as the 1980s, companies were adopting computer-based training to supplement traditional classroom activities. More recently, rich web-based applications have added streaming audio and video, real-time collaboration and other new tools to the e-Learning mix. At the same time, the growing availability of informal learning tools--a category that includes everything from web searches to social media posts--are having a major impact on …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds