Friday, November 4, 2011

Summary of C Under Windows in C programming language

(a) Under Windows an integer is four bytes long. To use a two- byte integer pre-qualify it with short.
(b) Under Windows a pointer is four bytes long.
(c) Windows programming involves a heavy usage of typedefs.
(d) DOS uses a Sequential Programming Model, whereas, Windows uses an Event Driven Programming Model.
(e) Entry point of every Windows program is a function called WinMain( ).
(f) Windows does not permit direct access to memory or hardware devices.
(g)
Windows uses a Demand-based Virtual Memory Model to manage memory.
(h) Under Windows there is two-way communication between the program and the OS.
(i) Windows maintains a system message queue common for all applications.
(j) Windows maintains an application message queue per running application.
(k) Calling convention decides the order in which the parameters are passed to a function and whether the calling function or the called function clears the stack.
(l) Commonly used calling conventions are __cdecl and __stdcall.
(m) Hungarian notation though good its usage is not recommended any more.

No comments:

Post a Comment