Microsoft KB Archive/101803: Difference between revisions
From BetaArchive Wiki
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 51: | Line 51: | ||
In Microsoft Visual C++, the .CPP extension can cause errors when it is used to create a .PLB or .FLL file with the FoxPro 2.5 Library Construction Kit (LCK).<br /> | In Microsoft Visual C++, the .CPP extension can cause errors when it is used to create a .PLB or .FLL file with the FoxPro 2.5 Library Construction Kit (LCK).<br /> | ||
<br /> | <br /> | ||
For example, using the .CPP extension to create a .FLL file (FoxPro for Windows library) can cause the error | For example, using the .CPP extension to create a .FLL file (FoxPro for Windows library) can cause the error "<path>\PROAPIML.LIB (c:\dosdev\source\winapi16.c) : error L2029: '_FoxTable' : unresolved external", where <path> is the path to PROAPIML.LIB. | ||
</div> | </div> | ||
Line 64: | Line 64: | ||
* Declare FoxTable as external, as follows: | * Declare FoxTable as external, as follows: | ||
<pre class="codesample"> extern | <pre class="codesample"> extern "C" FoxTable _FoxTable = | ||
{ | { | ||
(FoxTable FAR *) 0, sizeof(myFoxInfo) / | (FoxTable FAR *) 0, sizeof(myFoxInfo) / |
Revision as of 09:19, 20 July 2020
Article ID: 101803
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft FoxPro Library Construction Kit 2.5b for MS-DOS
- Microsoft FoxPro 2.5b for MS-DOS
- Microsoft FoxPro 2.5a
- Microsoft FoxPro 2.5b
- Microsoft FoxPro 2.5a
This article was previously published under Q101803
SYMPTOMS
In Microsoft Visual C++, the .CPP extension can cause errors when it is used to create a .PLB or .FLL file with the FoxPro 2.5 Library Construction Kit (LCK).
For example, using the .CPP extension to create a .FLL file (FoxPro for Windows library) can cause the error "<path>\PROAPIML.LIB (c:\dosdev\source\winapi16.c) : error L2029: '_FoxTable' : unresolved external", where <path> is the path to PROAPIML.LIB.
RESOLUTION
To avoid the error, do one of the following:
- Rename the program to have a .C extension. -or-
- Declare FoxTable as external, as follows:
extern "C" FoxTable _FoxTable = { (FoxTable FAR *) 0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo };
Additional query words: VFoxWin FoxDos FoxWin
Keywords: kbcode KB101803