FIX: Bad .MAK File Prevents Display of Make EXE File Dialog (94939)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
This article was previously published under Q94939 SYMPTOMS
The Make EXE File dialog box is not displayed and the program is not
compiled if you try to make an executable file when the project (.MAK)
file was saved incorrectly. Specifically, this problem occurs if the
.MAK file was saved with an invalid path to the executable file.
The project file is saved incorrectly if the directory name containing
your project files is derived from the Visual Basic working (or current)
directory name. This problem occurs if the working directory for Visual
Basic has this pattern:
and your project is in a directory that has this pattern:
where XXX represents the same pattern of characters.
For example, if you run Visual Basic from a directory called C:\VB2 and
your project is in C:\VB\CALC, you will encounter this problem. The Make
EXE dialog is not displayed, and your program is not compiled.
WORKAROUND
To work around the problem, use a text editor such as Notepad to delete the
line containing "Path=" from your project's .MAK file. Then save the .MAK
file, and reload your project in Visual Basic. You will now be able to
display the Make EXE dialog box. You will need to delete this statement
each time you make an .EXE file.
Another alternative workaround is to place all the files for your project
in a new directory where the directory name is not derived from the Visual
Basic working directory name. You can then delete the "Path=" statement
from the .MAK file using a text editor such as Windows Notepad.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic
version 2.0 for Windows. This problem was corrected in Microsoft Visual
Basic version 3.0 for Windows.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbbug KB94939 |
---|
|