附录 1 外文原文[8]The Windows Programming ModelNo matter which development tools you use, programming for Windows is different from old-style batch-oriented or transaction-oriented programming
To get started, you need to know some Windows fundamentals
As a frame of reference, we'll use the well-known MS-DOS programming model
Even if you don't currently program for plain MS-DOS, you're probably familiar with it
Message ProcessingWhen you write an MS-DOS-based application in C, the only absolute requirement is a function named main
The operating system calls main when the user runs the program, and from that point on, you can use any programming structure you want
If your program needs to get user keystrokes or otherwise use operating system services, it calls an appropriate f