Accessing the Visual FoxPro API

If Visual FoxPro does not include the features you require for your application, you can extend the capabilities of Visual FoxPro by creating external libraries, for example, a Microsoft ActiveX control (.ocx) file or Visual FoxPro dynamic-link library (FLL) file.

Visual FoxPro includes the Library Construction Kit, which contains the files Pro_Ext.h, WinAPIMS.lib, and OcxAPI.lib so you can create ActiveX controls and FLLs.

Note

The Library Construction Kit has a limit of 65,000 elements for arrays.

In This Section

  • Library or ActiveX Object Creation
    Explains extending the capabilities of Visual FoxPro by creating external libraries that accomplish tasks required by your application.
  • FoxInfo Structure
    Describes the FoxInfo structure used to communicate function names and parameter descriptions between Visual FoxPro and your FLL library.
  • FoxTable Structure
    Describes the FoxTable structure which keeps track of all the FoxInfo structures you have for a given library.
  • How to: Manage Memory
    Describes how the Visual FoxPro API provides direct access to the Visual FoxPro dynamic memory manager.

Related Sections

  • Accessing APIs
    Discusses how you can extend an application by taking advantage of external libraries such as Microsoft ActiveX controls or Visual FoxPro dynamic-link libraries (FLLs).
  • Extending Visual FoxPro with External Libraries
    Explains that you can add Microsoft ActiveX controls (.ocx files) to your application, which provides you with new objects to use in forms, to subclass, and to manage the way you work with native Visual FoxPro controls. In addition, you can link to an external library, such as a Visual FoxPro dynamic-link library (FLL) and call the library's functions to use in your own programs.