Open Project Dialog Misbehaves if Project Directory Is Deleted

ID Number: Q75519

1.00

WINDOWS

Summary:

If you currently have a project loaded in Visual Basic from a network

drive and, from a simultaneous DOS session in Windows, you delete that

project and its subdirectory, then the next Open Project command

incorrectly defaults to the nonexistent directory when you reselect

the network drive.

The problem is due to the Windows 3.0 operating environment and is not

a problem with Visual Basic 1.0. The problem is in the API function

DlgDirList() which is built into Windows 3.0. Microsoft is

researching this problem and will post new information here as it

becomes available.

This information applies to Microsoft Visual Basic programming system

for Windows version 1.0.

More Information:

Steps to Reproduce Problem

--------------------------

1. In Visual Basic, open a project, and save the project in a

subdirectory such as Z:\TEST on a network drive.

2. Without exiting Visual Basic, go to the Windows File Manager or DOS

prompt and delete the directory (Z:\TEST) that contains the project

on the network drive.

3. In Visual Basic, choose Open Project from the File menu. Visual Basic

will notice that the subdirectory is gone, so Visual Basic resets the

Open Project dialog box to the startup drive.

4. Click on the network drive letter in the Open Project list

box. The Open Project dialog box now incorrectly displays the

nonexistent subdirectory Z:\TEST as the current directory. To work

around this problem, type Z:\ or Z:\*.MAK in the text box

to properly reset to the root directory on the network drive.

Additional reference words: 1.00 3.00