FIX: Bad .MAK File Prevents Display of Make EXE File DialogLast reviewed: October 30, 1997Article ID: Q94939 |
2.00
WINDOWS
kbenv kbbuglist
The information in this article applies to: - Microsoft Visual Basic programming system for Windows, version 2.0
SYMPTOMSThe 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:
C:\XXXYYYand your project is in a directory that has this pattern:
C:\XXX\TEMPwhere 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.
WORKAROUNDTo 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.
STATUSMicrosoft 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.
MORE INFORMATION
Steps to Reproduce ProblemTo reproduce this problem, set the working directory of Visual Basic to the directory where VB.EXE is stored (C:\VB). To do this, highlight the Visual Basic icon in Program Manager and choose Properties from the File menu of Program Manager (PROGMAN.EXE). Then in the Properties dialog box, set the working directory path the same path where VB.EXE is located.
|
Additional reference words: buglist2.00 fixlist3.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |