Jump to content
  • Advertisement
Sign in to follow this  
AhmedSabry1975

DirectX+MFC

This topic is 3921 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Why? MFC is deprecated as far as I'm aware. You certainly shouldn't be creating any new applications with it.

And what part of DirectX? DirectSound? DirectInput? Direct3D? DirectDraw?

Assuming D3D, I believe you just need to pass the HWND of a control to render to to D3D.

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Why? MFC is deprecated as far as I'm aware. You certainly shouldn't be creating any new applications with it.


I dont think this is correct. MFC is still supported and recent Microsoft statements seem to bring back the old glory of MFC.
http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library

Share this post


Link to post
Share on other sites
I googled for "mfc directx tutorial" and got 337,000 hits. You too can google!

Also, the project EffectEdit in the SDK is MFC-based. That's a rather convoluted application but it provides an example of just about anything you want to do with MFC and DirectX.

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Why? MFC is deprecated as far as I'm aware. You certainly shouldn't be creating any new applications with it.


It's most definitely not deprecated, MFC 9.0 just came out with VS 2008. However I wholeheartedly agree with the second sentence. [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
It's most definitely not deprecated, MFC 9.0 just came out with VS 2008. However I wholeheartedly agree with the second sentence. [smile]
D'oh. I seem to be getting all sorts of things wrong lately [smile]

Ok, ignore what I said. I'm sure there was some reason not to use it though...

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
D'oh. I seem to be getting all sorts of things wrong lately [smile]


Don't worry about it, I'm sure you'll only get rated down 100 points or so. :P


Quote:
Original post by Evil Steve
Ok, ignore what I said. I'm sure there was some reason not to use it though...


Oh there's plenty of good reasons not to use it. For any sort of GUI app there's nothing you can do in MFC that you couldn't do much quicker with Windows Forms (except for the Office-style ribbons, but come on...). And it's pretty much overkill for any game that just needs a window. If you really want a class-based window framework WTL is a much leaner (and meaner) option.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!