How To Use BSTR, VARIANT, SAFEARRAY Types in Custom Interface (158723)
The information in this article applies to:
- Microsoft COM, when used with:
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 95
This article was previously published under Q158723 SUMMARY
On platforms that do not support DCOM, such as Windows 95 without DCOM and
versions of NT before NT 4.0, MIDL cannot generate marshaling code for
custom interfaces that use the VARIANT, BSTR, or SAFEARRAY types. MIDL
can generate marshaling code for such custom interfaces on platforms
that support DCOM, such as Windows 95 with DCOM, NT 4.0 and later versions.
This marshaling code can only be used on DCOM platforms; it cannot be
used on platforms that do not support DCOM.
REFERENCES
For more information, please see the following articles in the Microsoft
Knowledge Base:
139074 SAMPLE: VTBLBIND: Marshaling Using an OLE Automation Marshaler
139072 Using OLE Automation Marshaler for 16/16 & 16/32 COM Interface
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbhowto KB158723 |
---|
|