Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Normie

"Simple Win32 Application" in MSVC++

This topic is 6191 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

When I go to create a win32 app, I usually choose A Simple Win32 application instead of a blank one (just to get things going a little faster). I know I put my standard includes (windows.h, d3d8.h, etc) in StdAfx.h, but what can/should StdAfx.cpp be used for? -Normie "But time flows like a river... and history repeats." ... So...what about beaver dams?

Share this post


Link to post
Share on other sites
Advertisement
Trust me, STDAFX.h causes a lot of trouble, so just create a blank WIN 32 application each time. Include windows.h or windowsx.h manualy.

Edem Attiogbe

Share this post


Link to post
Share on other sites
LOL


My friend made a pretty nice App Wizard for VC 6. You can use it for console apps or windows apps. It makes a nice template for you without all the MFC (stdafx) BS.

you can d/l it at
http://www.yerdumb.com/jon/projects/realwizardsetup-1.0.zip

Share this post


Link to post
Share on other sites
(Hint: you can delete your double posts: check the ''Delete this post'' box when you Edit it.)

Stdafx.cpp is used for definitions of the data you declared in stdafx.h. For example, if you declared some global data in the .h (extern int SomeGlobalInt then it makes sense to define that data in the accompanying .cpp (int SomeGlobalInt.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!