Microsoft KB Archive/140638

= PRB: FLL Created Without LCK API Functions Is Invalid =

Article ID: 140638

Article Last Modified on 2/10/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q140638



SYMPTOMS
You may receive the error message "Library file is invalid" when using the SET LIBRARY TO command to load an .fll file created with the Library Construction Kit (LCK).



CAUSE
There appears to be a problem with .fll files that are created for Visual FoxPro that don't call any of the _Functions that are part of the FoxPro API. This is not the case with .fll files created in previous versions. The error appears to be caused by the fact that the DLL doesn't have any exports. Normally a valid .fll file will contain the DispatchAPI export.



WORKAROUND
Call an extraneous .fll function in the code.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
Create an .fll file but don't add any of the Library construction Kit functions besides the FoxTable and FoxInfo structures: // include the library construction header file
 * 1) include 

void bugtest(ParamBlk *parm) // the function definition {    double c,e; c=3.00; e=++c*3.1415927; //_RetFloat(e,15,10); //Remove comment on previous line to fix error }

// the FoxInfo structure registers the function FoxInfo myFoxInfo[] = { {"BUGTEST",(FPFI) bugtest, 0, ""}, };

// the FoxTable structure FoxTable _FoxTable = { (FoxTable *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo };

Additional query words: VFoxWin

Keywords: KB140638

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.