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

  • When it comes to desktops – physical or virtual – it's all about the applications. Cloud-hosted virtual desktops are growing fast because you get local data center-class security and 24x7 access with the complete personalization and flexibility of your own desktop. Organizations make five common mistakes when it comes to planning and implementing their application management strategy. This eBook tells you what they are and how to avoid them, and offers real-life case studies on customers who didn't …

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds