Advertisement

Proper placement

Started by July 10, 2002 06:40 PM
1 comment, last by Kaver 22 years, 7 months ago
I have a question about placing code such as graphics. Do I need to create a resource file so that the complie time can be shorter? or do I need to include the code when I initialize everthing in the WinMain.cpp file? WinMain.cpp is an example of the file that I use for the main .cpp text...duh like you guys didn''t know that. Remember just been in the industry about less than 6 months or so. Thanks for the understanding...eh!
When the world has got you down, that's when you strike back and show them who you really are.
It depends on what you''re doing and your own preference. For smaller applications/games making images resources works great. However, for larger applications/games adding your art and sound as resources to the executable will make it extremely large.

As for the second question, including stuff in the WinMain file, I don''t understand what you are trying to get across. Could you reword that?



I know only that which I know, but I do not know what I know.

I know only that which I know, but I do not know what I know.
Advertisement
What I meant to say was that do you need to intialize the graphic functions (i.e. DirectDraw) in the .cpp file that contains the main event loop or do I initialize it in another .cpp file?

Sorry for the lateness for the reply I was having problems with my server.


When the world has got you down, that's when you strike back and show them who you really are.

This topic is closed to new replies.

Advertisement