Archived

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

Normie

"Simple Win32 Application" in MSVC++

Recommended Posts

Normie    122
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
NickW    321
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
Kylotan    9871
(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