The information in this article applies to:
SYMPTOMSIf a method exposed to VBA through either a host application's object model or a control containing an [out, retval] parameter that is not a pointer, VBA might crash when using the Object Browser or IntelliSense. For example, if the type library of an object exposed to VBA contains the following type definition and method definition, VBA may crash:
CAUSEThis problem occurs because VBA expects parameters marked [out, retval] to be pointers (that is, of type VT_PTR). When this condition is violated, an error occurs. RESOLUTIONTo correct this problem, all parameters in a type library marked [out, retval] should be made pointers. To revisit the previous example, changing the second parameter of the method from tShort to short* alleviates the crash:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Additional query words:
Keywords : kbSDKVBA kbGrpDSO kbDSupport |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |