Generate

The Generate command creates new versions of all output files, including the source file (.C), the include file (.H), the resource file (.RC), the module-definition file (.DEF), and the project file (.MAK).

The Generate command erases any existing versions of these files and replaces them with new ones. Files produced by the Generate command contain only the information needed to produce the prototyped interface—you must fill in the program's functionality.

WARNING:

If you made changes to the source files you want to keep, use the Update command. The Generate command deletes any changes you made.

You must use the Generate command the first time you build a set of source files, but you will usually use the Update command after any additional interface changes.

·To produce new interface source files:

1.From the Build menu, choose Generate.

2.If you have not named the file, a dialog box asks you to name the program. Type the name for the new program, then choose OK.

If a database (.WIN) file already exists with the same name, a dialog box appears and asks if you want to replace it.

If a program already exists with the same name, a dialog box appears and asks you if you want to update the program (and leave any code modifications in place), or generate the program from scratch. To produce new files, choose Yes (see Figure 6.13).

QuickCase:W displays a “Generate” icon while it produces the output files. Since program generation occurs in a background-processing mode, you can run other Windows applications while QuickCase:W creates the files.

QuickCase:W beeps and displays a dialog box when the files are finished. If you've switched to another program during generation, you'll still hear the beep but won't see the dialog box until you've switched back to QuickCase:W.