DWORD header
I am currently including windows.h to make use of DWORDS for clock functions, but is there a smaller header to do this. After some investigation I found that it should be winbase.h but this doesnt seem to work. On another point if program_base.cpp includes game_info.h and both program_base.cpp and game_info.cpp uses windows.h is it included twice and adds to the final exe ?
WHO DO THEYTHINK THEY'REFOOLING : YOU ?
a DWORD is just an "unsigned long".
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
typedef unsigned long DWORD
...should work
GA
Visit our homepage: www.rarebyte.de.stGA
Thanks, your right I just had to declare
typedef unsigned long DWORD;
in my header, but it turned out I needed a function GetTickCount(); from the windows headers after all.
typedef unsigned long DWORD;
in my header, but it turned out I needed a function GetTickCount(); from the windows headers after all.
WHO DO THEYTHINK THEY'REFOOLING : YOU ?
heh the answer to your second question is yes and no... yes when the compiler goes to compile your cpp files each file that has the include is put in each cpp... and its also no... all a header should have in it are things like function delclerations externs class desc preprocser stuff ect... no actual data or functions... none of that shows up in the exe... thats just used so the compiler knows that some function or what ever will be there when the program is run... but not in THAT cpp file... so your exe isn''t going to be any big... well it might be in debug... I''m not shure... but that doesn''t matter... a debug exe is so damn blowded anyways and you shouldn''t release debug exe to the public.. the only time you should have debug versions is when your debuging an app/game....
Great Milenko
Great Milenko
Words Of Wisdom:
"Never Stick A Pretzel In Your Butt It Might Break Off In There."
http://www.crosswinds.net/~milenko
http://www.crosswinds.net/~pirotech
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement