DVARIANT.PutUtf8method
Initializes DVARIANT with the contents of an UTF-8 string.
Syntax
FUNCTION PutUtf8 (BYREF strUtf8 AS STRING) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
strUtf8 | The UTF-8 encoded string. |
Return value
If this function succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
Description
Initializes DVARIANT with the contents of an UTF-8 string.
Remarks
Creates a VT_BSTR variant.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:1260
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class