Microsoft KB Archive/147306

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

Article ID: 147306

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q147306



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.



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: kbbug kbfix kbvfp500fix KB147306

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.