FIX: COMMAND Statement Ignored in Configuration File

Last reviewed: November 6, 1997
Article ID: Q106278
2.50 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro Distribution Kit for Windows, version 2.5

SYMPTOMS

The "COMMAND = <command>" statement of a configuration file is ignored if the configuration file is built into an executable (.EXE) file.

STATUS

Microsoft has confirmed this to be a problem in the FoxPro Distribution Kit 2.5 for Windows. This problem was corrected in the FoxPro Distribution Kit 2.5a for Windows.

MORE INFORMATION

The FoxPro Distribution Kit for Windows is required in order to build an .EXE file from a project.

FoxPro 2.5a for Windows should be used with the FoxPro Distribution Kit 2.5a for Windows.

Steps to Reproduce Problem

NOTE: The following steps assume that you do not already have any files with the names CONFIG.FPW, MAIN.PRG, TEST.PJX, or TEST.EXE.

  1. Create a text file named CONFIG.FPW containing the following code:

          COMMAND = WAIT WINDOW 'In CONFIG.FPW'
    

  2. Create a program file named MAIN.PRG containing the following code:

          WAIT WINDOW 'In main program.'
    

  3. Create a project named TEST.PJX. Add the MAIN.PRG and CONFIG.FPW files to the project.

  4. Build an .EXE file named TEST.EXE from the project.

  5. Quit FoxPro for Windows.

  6. Run TEST.EXE.

Only MAIN.PRG is called, displaying the message, "In main program."

NOTE: When these steps are followed using the FoxPro Distribution Kit 2.5a for Windows, the WAIT WINDOW command in CONFIG.FPW is executed, but MAIN.PRG is not called. This is consistent with the behavior of FoxPro 2.0 and 2.5 for MS-DOS.


Additional reference words: FoxWin 2.50 buglist2.50 fixlist2.50a CONFIG.FPW
startup start up
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxenvConfigfp
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.