Admin Production ni-theme
Current Publication

CA_VariantBSTR

LabWindows/CVI

CA_VariantBSTR

VARIANT CA_VariantBSTR (BSTR BSTRValue);

Purpose

Converts a BSTR into a variant that contains the BSTR.

Use CA_VariantBSTR to pass a BSTR value as a variant parameter.

Note    The value stored in the variant parameter is a reference to the original value. Call CA_VariantClear to free the original value.

Parameters

Input
Name Type Description
BSTRValue BSTR Value to store in the variant.

Return Value

Name Type Description
variant VARIANT Variant that contains the value in BSTRValue.

Additional Information

Library: ActiveX Library

Include file: cviauto.h

LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later

Example

Refer to userint\activex\richTextbox.cws for an example of using the CA_VariantBSTR function.