FIX: Incorrect Error Returned With FileSystem.GetAttr |
Q180626
When an invalid pathname is passed as a parameter to the GetAttr method of the FileSystem control, the following error message occurs:
The correct error returned should be "Invalid Pathname" or "File not Found."-2147024713 - "Cannot create a file when that file already exists"
Microsoft has confirmed this to be a problem in the Microsoft products that are listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.
Option Explicit
Private Sub Command1_Click()
On Error Resume Next
FileSystem1.GetAttr ("\\")
MsgBox Err.Description, , Err.Number
End Sub Additional query words: wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB
Issue type : kbbug
Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500
|
Last Reviewed: February 28, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |