PRB: Passing Parameters By Reference to a VC COM Object (197957)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q197957 SYMPTOMS When passing a parameter to a COM Component's method in
Active Server Pages (ASP) using VBScript, either the following error occurs:
Microsoft VBScript runtime error '800a000d' Type
mismatch Or the value stored in the variable passed to the
method is not changed. CAUSE VBScript will pass parameters to a method by value if the
argument's data type is NOT declared as a variant and the parameter is passed
by reference if the argument's data type is declared as variant by the method.
RESOLUTION Parameters to be passed as [out] parameters (that is, by
reference) to a method should always be declared as a pointer to a variant data
type by the method, while [in] parameters (that is, passed by value) can be
declared as any type. STATUS This behavior is by design. REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base: 244012 INFO: Type Mismatch Errors When You Pass Parameters from ASP to a Visual Basic Component
Modification Type: | Minor | Last Reviewed: | 3/21/2005 |
---|
Keywords: | kbCodeSnippet kberrmsg kbprb KB197957 kbAudDeveloper |
---|
|