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: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds