i would think that sence the windows heder is not so sufishunt.
simply b'cus its the bigest heder out there... that i know of.
|
No, its just as Disch said, using Windows.h won't increase the size of your executable, make it run slower, or anything like that. Windows is in my opinion an extremely advanced system, and for that reason it takes a lot of function prototypes, defines, structures, etc., to adequately describe it. Windows.h is actually the master include which pulls in many, many, many, other includes. But everything not referenced in your actual code is excluded from your executable.
Let me just give you an idea of what's possible. Where I work all our mission critical software consists of about three executable programs whose combined size comes to about one megabyte. That's 1 MB. One million bytes, i.e., it would fit on an old 1.44 MB floppy disk. The source code comes to probably about 30,000 lines of code I've written, but that doesn't include much more than that I didn't write but is in the system includes, i.e., Windows.h, etc. These are major systems that before I wrote them ran only on mainframes.
The reason the programs are so small is that most of their functionality comes directly from code that is a part of every Windows system. Contrast this with class frameworks (.NET, MFC, wxWidgets, etc) which consist of OOP class wrappers around the base system functionality implemented in a required runtime, and you have the difference. To each his own. It depends on what you want or what you know or what you can put up with.
My programs are not cross platform. They will only run on Windows. They were written for Windows. If I wanted to write a *nix program I'd use XLib or GTK likely.