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

  • Adaptation and evolution are fundamental requirements of survival -- not only in nature, but also in business. Our world has changed dramatically in a short amount of time. Many businesses are fueling and capitalizing on this change, while others are desperately clinging to a bygone era. Who is left standing in the years and decades ahead should come as no surprise. This edition of Unleashing IT highlights the companies that are embracing new circumstances, new methods, and new opportunities. By downloading …

  • Live Event Date: August 19, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT You deployed your app with the Bluemix PaaS and it's gaining some serious traction, so it's time to make some tweaks. Did you design your application in a way that it can scale in the cloud? Were you even thinking about the cloud when you built the app? If not, chances are your app is going to break. Check out this upcoming webcast to learn various techniques for designing applications that will scale successfully in Bluemix, for the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds