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



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 3.0b

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.

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.

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:kbBug kbfix kbvfp500fix KB147306