FIX: Read Only Icon Keeps Visual FoxPro .EXE from Compiling

Last reviewed: October 29, 1997
Article ID: Q147306
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

An attempt to build a Visual FoxPro .exe file with a read-only icon (.ico) file added to it fails. The .exe cannot be built. In its place, an .app file is created. No error message appears.

WORKAROUND

The only known workaround is to not mark the .ico file as read only.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new project.

  2. In the Project Manager, click the Code tab, select Programs, and then click New to add a new program.

  3. In the new program window, enter something simple such as WAIT WINDOW or MESSAGEBOX(). Close and save the program. Ensure the program is marked as Main. To do this, select the program and click Set Main on the Project menu, or right-click the program and click Set Main.

  4. Mark any .ico file or icon-style .bmp file as read only. There are many sample icons located in the \Vfp\Samples\Graphics\Icons\ subdirectory.

  5. Go back to the project created in Step 1. On the Project Menu, click Project Information.

  6. Select the "Attach ICON to EXE" check box.

  7. Choose the same icon file that was marked as read only.

  8. Click OK in the dialog boxes.

  9. Choose to build an .exe file. The status bar will reflect the message that it is building an .exe file, but Visual FoxPro never actually completes the .exe file. Check the directory. The .exe file does not exist. In its place, you will find an .app file.
Keywords          : buglist3.00 buglist3.00b fixlist5.00 FxsetupGeneral vfoxwin kbtool
Version           : 3.0 3.0b
Platform          : WINDOWS
Issue type        : kbbug
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: October 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.