Share via


Removing Restricted Visual FoxPro Features and Files

The development environment of Visual FoxPro contains many features and files that are licensed for your use only. If your application contains any of these features or files, remove them.

Restricted Visual FoxPro Features

You cannot include the following Visual FoxPro menus and their menu commands in a distributed executable file.

Restricted menus

  • Database
  • Form
  • Menu
  • Program
  • Project
  • Query
  • Table

If your application includes the following commands, it will return the error "Feature not available." Although you cannot include commands that create or modify menus, forms, or queries, you can run compiled menu, form, or query programs in your application.

Unavailable commands  
APPEND PROCEDURES MODIFY FORM
BUILD APP MODIFY MENU
BUILD EXE MODIFY PROCEDURE
BUILD PROJECT MODIFY PROJECT
CREATE FORM MODIFY QUERY
CREATE MENU MODIFY SCREEN
CREATE QUERY MODIFY STRUCTURE
CREATE SCREEN MODIFY VIEW
CREATE VIEW SUSPEND
MODIFY CONNECTION SET STEP
MODIFY DATABASE  

If used in a distributed application, the following commands are ignored.

Ignored commands  
SET DEBUG SET DOHISTORY
SET DEVELOPMENT SET ECHO

Restricted Visual FoxPro Files

Visual FoxPro installs files on your computer that are restricted and may not be reproduced or distributed, including:

  • Some wizard files
  • TrueType fonts
  • Help files

Redist.txt

Visual FoxPro contains many files that are licensed for your use for design, development, and testing purposes only. See Redist.txt, located in your Visual FoxPro directory, for a list of redistributable files.

If your application contains files not in Redist.txt (other than files authored by you), remove them. Under the terms of the Microsoft License Agreement you received with this product, you aren't permitted to ship these files in your application or on your disks.

Distributable Files

You may distribute any Visual FoxPro file that isn't restricted. Pursuant to the Microsoft License Agreement you received with this product, files must be distributed in conjunction with a corresponding application. The following guidelines apply to distributable files.

Samples

Files in the \Samples\ folders and in the \Api\Samples folders are provided for you to learn from and build on. Although you may not distribute unmodified Visual FoxPro, you may refer to portions of sample application code as examples for building your own application.

If you use any files in these directories (including all .bmp, .ico, and .cur files), they must be included in your project and in the application build. They must not appear by name on the distributable disks and may not be distributed independently of your applications.

Class Libraries

You can use any .vcx file, including those in the \Ffc and \Gallery directories, the wizard class library, Wizstyle.vcx, and the sample class libraries without modification in your applications. The libraries must be included in your project and in your application build.

ODBC Files

Please refer to the Microsoft License Agreement you received with this product for specific restrictions with respect to your redistribution of ODBC files.

ActiveX Controls

Visual FoxPro includes a set of ActiveX controls (.ocx files) you can add to and distribute with your applications.

See Also

Including Resources in Your Applications | Preparation of an Application for Distribution | Protecting and Documenting Your Source Code | Distributing Applications