共用方式為


BUILD EXE Command

Creates an executable file from a project.

BUILD EXE EXEFileName FROM ProjectName [RECOMPILE]

Parameters

  • EXEFileName
    Specifies the name of the executable file to create. If an .app application file with the same root file name as the stand-alone executable file exists, it is deleted. If an executable file exists and you create an .app file with the same name, the executable file is deleted.
  • FROM ProjectName
    Specifies the name of the project from which the executable file is built.
  • RECOMPILE
    Specifies that the project be compiled before the executable file is built. All program and format files; form, label, report, and visual class library source code; and stored procedures in databases in the project are compiled.

Remarks

An executable file created with BUILD EXE requires two support files: Vfp7r.dll and Vfp7renu.dll (enu denotes the English version). These files must be placed in the same directory as the executable file or along the MS-DOS path.

If the executable file contains OLEPUBLIC class definitions, BUILD EXE automatically registers the OLEPUBLIC class definitions in the system registry. OLEPUBLIC class definitions appear in the Server Classes list box on the Servers tab of the Project Information dialog box.

BUILD EXE also creates .vbr (registration) and .tlb (type library) files with the same name as the executable file. The .vbr file allows you to register the class definitions in the system registry when the executable file is moved to a different computer. The .tlb file is for use with object browsers.

For more information about registering OLEPUBLIC class definitions in an executable file, see Adding OLE.

See Also

BUILD DLL | BUILD APP | Build Method | BUILD MTDLL | BUILD PROJECT