PRB: Compact FoxPro Executable Won't Run Under Windows

Last reviewed: July 8, 1996
Article ID: Q129923
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS

Compact executables created in FoxPro for windows are expected to run independently when installed in a directory that contains the FoxPro library file (FPW2600.ESL). However, some executables that run within the FoxPro development environment fail to run when moved to a separate directory in windows. Double-clicking the file doesn't generate any result, and there is no error message to indicate its failure to run.

CAUSE

One possible cause of these symptoms is the naming convention used for the executable file. If the name of the executable file is identical to a Windows system file such as USER.EXE, GDI.EXE, or KERNEL.EXE, the executable won't run outside the FoxPro development environment. These names are not reserved words in FoxPro, however, users who give their application similar names will be able to run them within FoxPro but will have problems in Windows.

RESOLUTION

Rename the application file.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an executable named USER.EXE from any project (.PJX) file in FoxPro for Windows.

  2. Create a new directory in Windows and move the following files to that that directory:

        - USER.EXE (the executable created from the project file)
        - FPW2600.ESL (the FoxPro library file)
        - Any other files required to run the executable such as .DBF or .CDX
          files.
    

  3. Try running the Executable file by double-clicking it in File Manager.

NOTE : This condition is true for executables with these names created in FoxPro for MS-DOS that run under Windows from the File Manager. However, the problem will not occur if the same file is run from the MS-DOS prompt.


Additional reference words: FoxWin 2.60a will not run
KBCategory: kbenv kbprb
KBSubcategory: FxotherGeneral


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: July 8, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.