This topic has not yet been rated - Rate this topic

HString::MakeReference Method

Visual Studio 2012

Creates an HStringReference object from a specified string parameter.

template<unsigned int sizeDest>
    static HStringReference MakeReference(
              wchar_t const (&str)[ sizeDest]);

    template<unsigned int sizeDest>
    static HStringReference MakeReference(
              wchar_t const (&str)[sizeDest], 
              unsigned int len);
sizeDest

A template parameter that specifies the size of the destination HStringReference buffer.

str

A reference to a wide-character string.

len

The maximum length of the str parameter buffer to use in this operation. If the len parameter isn't specified, the entire str parameter is used.

An HStringReference object whose value is the same as the specified str parameter.

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.