Jump to content
  • Advertisement

Archived

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

Sand_Hawk

Advice needed

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

Hi guys, I just started out with Windows programming and DirectX. But that''s not the part that I need advice in. A simple Windows program is actually kinda big(lots code of doing nothing). Do you guys write every time when you start with a new project all the code yourself or do you just load a standard Windows source and modify this one? I thought the best solution is just to create a standard file and Ctrl+C/Ctrl+V it into the new project. How do you guys do it? Thanks anyway, Sand HAwk -Earth is 98% full. Please delete anybody you can.

Share this post


Link to post
Share on other sites
Advertisement
I copy a standard one.
As long as you understand what''s going on with the basic Win32 skeleton, I see no need to torture yourself by writing it out from scratch each time you use it.

~~~~~~~~~~
"Usewhitespacetoenhancereadability" - Steve McConnell, Code Complete

Share this post


Link to post
Share on other sites
I have a frame file that has the window loading code and Init() Shutdown() and GameMain() routines in it. I saved it on a disk so I wouldn''t write over it and I just load it and make necessary changes every time I start a new project.

Share this post


Link to post
Share on other sites
I just stuffed all of my StartUp/ShutDown code into one file. Then, all I had to do -say, for seting up DX- is write one line of code. It also helps when I want to fix something that''s not working: I can easily setup DX and not have to decide whether it''s my initialization code that''s failing or the actual game-specific code that I am writing.

~ There''s no substitute for failure ~

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!