3.1.2 Windows 3.0 Applications

You can use the Windows 3.1 SDK to create a Windows 3.0 application by following these steps:

1.Set the WINVER define variable to 0x300 to enable the WINDOWS.H file for Windows 3.0 compilation. Place the following statement immediately before the include statement for the header file:

#define WINVER 0x300

2.Link your application object files with the LIBW.LIB library provided with the Windows 3.1 SDK. Except for the functions that are new to Windows 3.1, all functions defined in this import library are compatible with Windows 3.0.

3.Mark your application as a Windows 3.0-only executable by using the /30 option with Windows Resource Compiler (RC). The /30 option cannot be used with the /r option.

4.If you create Windows Help files for your application, use Help Compiler version 3.0 (HC30.EXE) to compile your files.

By default, Resource Compiler marks applications for 3.1, so it is important to use the /30 option mentioned in the preceding steps.

All Windows 3.0 applications can use Windows extensions, such as common dialog boxes and object linking and embedding. If you use these features, you must ship the corresponding dynamic-link libraries (DLLs) and related files with your application. They should be installed along with the application.