ID: Q147306
The information in this article applies to:
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.
The only known workaround is to not mark the .ico file as read only.
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.
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 : kbtool kbVFp kbVFp300bbug kbVFp500fix buglist3.00 FxsetupGeneral
Version : 3.0 3.0b
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix
Last Reviewed: October 31, 1997