PRB: Cannot Create File GENSCRN.FXP or GENMENU.FXP

Last reviewed: April 29, 1996
Article ID: Q99601
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a

SYMPTOMS

When you are running FoxPro from a network, if you try to generate screen code using the FoxPro screen generator, FoxPro generates the error message "Cannot create file GENSCRN.FXP."

A similar error ("Cannot create file GENMENU.FXP") occurs if you try to generate menu code from the menu generator. This error can also occur if you are running Visual FoxPro.

NOTE: The same situation occurs with TRANSPORT.PRG and TRANSPORT.FXP, which are used when you bring a FoxPro for MS-DOS program into FoxPro for Windows or vice versa. In this case, the error message received is "Cannot create file TRANSPORT.FXP."

CAUSE

When FoxPro runs a .PRG file, it compiles the .PRG file and creates the compiled .FXP version. The error message above appears when FoxPro cannot create the GENSCRN.FXP or GENMENU.FXP file in the main FoxPro directory. When FoxPro is on a network, this problem will occur if you do not have create rights to the main FoxPro directory.

RESOLUTION

There are two ways to work around this problem:

Method 1

The .FXP file is created only once, so if the system administrator creates a screen and generates it, the GENSCRN.FXP file will be created in the main FoxPro directory on the network.

Method 2

Complete the following steps:

  1. Compile GENSCRN.PRG on your local hard disk.

  2. From the main FoxPro menu, choose Program and then choose Compile. Select GENSCRN.PRG in the FoxPro network directory as the file to compile.

  3. At the bottom of the Compile dialog box, choose the More button to change the location of compiled files.

  4. Send the compiled file to your local workstation's FoxPro directory.

  5. In the Command window, type the path to the GENSCRN.FXP or the GENMENU.FXP file. For example:

          _GENSCRN="C:\FOXPROW\GENSCRN.FXP"
    

    NOTE: You can add this command to your CONFIG.FPW file instead of issuing it in the Command window.


Additional reference words: VFoxWin 3.00 MBuilder FoxDos FoxWin 2.50 2.00
2.50a GENSCRN errmsg err msg 2.50b 2.60 2.60a
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxtoolMBuilder


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