Chapter 14 C and Assembly Language

Parts 1 and 2 of the Microsoft Windows Guide to Programming introduced the functions you use in the context of a C- or assembly-language application to create an application for the Microsoft Windows 3.1 operating system. The focus in these parts was on the Windows-specific elements of a Windows application.

A complete Windows application might not use only these Windows-specific functions, however. Instead, your application will probably use standard C run-time library functions and your own functions, which will be called back by Windows or by other modules in your application. You should know how to incorporate these functions properly in your applications.

This chapter covers the following topics:

Choosing a memory model

Using the NULL constant

Using command-line arguments and the MS-DOS environment

Writing exported functions

Using C run-time functions

Writing assembly-language code