The information in this article applies to:
SUMMARYWhen you call a method that has optional parameters from Visual C++, you cannot omit the optional parameters. You need to pass a special VARIANT instead. MORE INFORMATIONSome methods have "optional" parameters. In Visual Basic, you can omit them when calling the method. However, when calling with Visual C++, you have to pass a special VARIANT whose .vt field has the value VT_ERROR, and .scode field has the value DISP_E_PARAMNOTFOUND. That is:
This is what Visual Basic is doing behind-the-scenes.
Additional query words:
Keywords : kbVC |
Last Reviewed: October 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |