If your application has requirements that cannot be met by the features already built into Visual FoxPro, you can extend the program by taking advantage of external libraries such as Microsoft ActiveX controls or dynamic-link libraries (DLLs). Using external libraries, you can add all kinds of objects to your application, from enhanced text boxes to calendars and other full-featured applications, and you can take advantage of the functionality offered by other programs (including Microsoft Windows) through their application programming interfaces (APIs).
In This Section
- Extending Visual FoxPro with External Libraries
- Explains that you can add Microsoft ActiveX controls (.ocx files) to your application easily, 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 DLL, and call the library's functions to use in your own programs.
- Accessing the Visual FoxPro API
- If an external library is not available to suit your needs, you can write your own Microsoft ActiveX control or Visual FoxPro-specific dynamic-link library (.fll file). By calling the functions available in the Visual FoxPro API, you can create controls or libraries that are tightly integrated with and optimized for use in Visual FoxPro.