PRB: FPSQL Compiles With SET LIBRARY TO Instead Of LoadingLast reviewed: February 10, 1998Article ID: Q167182 |
The information in this article applies to:
SYMPTOMSIssuing the SET LIBRARY TO HOME()+"FPSQL.FLL" command in FoxPro for Windows and then checking to see what library is loaded shows that Fpsql.fxp is the library that is loaded. In other words, the FLL compiles into an FXP file. In Windows NT, the message "Cannot find ODBC.DLL" may appear. In FoxPro for Windows 2.5x, the message "Library file is invalid" may be displayed along with the above message.
CAUSEThis is caused by a missing DLL file. Usually the missing DLL file is Odbc.dll but sometimes the FLL could compile if another required DLL is missing from the Windows\System folder.
RESOLUTIONMake sure the Odbc.dll file is located in the Windows\System folder if using Windows 95 or Windows 3.x. If using Windows NT, the Odbc.dll file should be in the WinNT\System folder rather than the WinNT\System32 folder.
STATUSThis behavior is by design. An FLL cannot be loaded if all of the DLLs that it depends on do not exist.
MORE INFORMATIONThe Fpsql.fll and Odbc.dll files are provided with the FoxPro Connectivity Kit. The Fpsql.fll is on Disk 1 along with the CKSample.app and some other files. It is not a compressed file so it can be copied directly from the disk. The Odbc.dll is on the ODBC Setup disk. It is a compressed file so setup for ODBC should be run to install it.
Steps to Reproduce Behavior
REFERENCESFor additional information on other files installed with the FoxPro Connectivity Kit, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q101052 TITLE : Disk Directory and Installation of the Connectivity KitFor a utility program that can be used to test if a FLL file will load, see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q153525 TITLE : SAMPLE: Flltest.exe Determines If FLL File Loads Successfully Keywords : FoxWin FxenvOs FxtoolCk kbtool Version : 2.5 2.5a 2.5b 2.6 2.6a Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |