原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com
Platform Builder for Microsoft Windows CE 5.0
VariantInit
This function initializes a variant.
这个函数初始化一个variant。
HRESULT VariantInit(
VARIANTARG FAR* pvarg
);
Parameters
pvarg
[out] Pointer to the VARIANTARG that will be initialized.
指针指向的VARIANTARG将被初始化。
Remarks
Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.
传入无效的(在某些情况下NULL)指针到这个函数引起意外的程序终止。
The VariantInit function initializes the VARIANTARG by setting the vt member to VT_EMPTY.
这个VariantInit函数初始化VARIANTARG通过设置vt成员为VT_EMPTY。
Unlike VariantClear, this function does not interpret the current contents of the VARIANTARG.
不像VariantClear,这个函数不能解释为VARIANTARG的当前内容。
Use VariantInit to initialize new local variables of type VARIANTARG (or VARIANT).
使用VariantInit初始化的新的本地的VARIANTARG (或 VARIANT)类型的变量。
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.
See Also
Automation Functions | VARIANTARG | VariantClear
--------------------------------------------------------------------------------
Last updated on Wednesday, September 14, 2005
© 2005 Microsoft Corporation. All rights reserved.