PRB: WithEvents Does Not Work with Remote Automation (172312)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q172312 SYMPTOMS
When attempting to raise a remote event across Remote Automation, the
following run-time error appears:
-2147467259(80004005) , Automation error
CAUSE
Remote Automation does not currently support the use of WithEvents.
RESOLUTION
To support remote events with Visual Basic 5.0, use DCOM instead of Remote
Automation. You can also use callbacks to simulate raising events remotely.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbprb KB172312 |
---|
|