Generic provides essentials that make it an appropriate starting point for your applications. It conforms to accepted standards for appearance and cooperation with other applications. It contains all the files an application can have: .DEF, .H, .RC, .C, and .MAK. The About dialog box, an application standard, is included, as is the About Generic command on the Help menu.
You can use Generic as a template to build your own applications. To do this, copy and rename the sources of an existing application, such as Generic, then change relevant function names, and insert new code. All sample applications in this guide have been created by copying and renaming Generic's source files, then modifying some of the function and resource names to make them unique to each new application.
The following procedure explains how to use Generic as a template and adapt its source files to your application:
1.Choose your application's filename.
2.Copy the following Generic source files, renaming them to match your application's filename: GENERIC.C, GENERIC.H, GENERIC.DEF, and GENERIC.RC.
3.Create a new project using the Project menu, and specify the renamed files from Step 2.
4.Change each occurrence of Generic in your application's C-language source file to your application's name. This includes changing the following:
The class name: GenericWClass
The class menu: GenericMenu
The window title: Generic Sample Application
The include filename: GENERIC.H
5.Change each occurrence of Generic in your application's module-definition file to your application's name. This includes changing the application name itself.
6.Change each occurrence of Generic in your application's resource script file to your application's name. This includes changing the following:
The include filename: GENERIC.H
The application title: Generic Application
The menu name: GenericMenu
As you add new resources and include files to your applications, be sure to use your application's filename to ensure that these names are unique.