PRB: How to Use Automation Error Code & Help from Visual Basic (122488)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 2.0
This article was previously published under Q122488 SYMPTOMS
Visual Basic version 3.0 does not report automation errors that result from
OLE automation exceptions. Instead, it reports an err value of 440 and a
description string of "OLE Automation exception." The actual wCode passed
by the automation server is lost.
STATUS
This behavior is by design in Visual Basic version 3.0. Visual Basic for
Applications, included in Excel version 5.0, Visual Basic 4.x and later,
and other Microsoft products, returns the wCode correctly.
Modification Type: | Major | Last Reviewed: | 12/8/2003 |
---|
Keywords: | kbAutomation kbinterop kbprb kbtshoot KB122488 kbAudDeveloper |
---|
|