Bewerken

Delen via


IOleCvt::DecodeUnicodeName method

The DecodeUnicodeName property enables an ASP Web page to translate a Unicode string to its ANSI equivalent.

Syntax

[propget, id(3), helpstring("property DecodeUnicodeName")] HRESULT DecodeUnicodeName(
  [in]          BSTR bstrSrcName,
  [out, retval] BSTR *pVal
);

Parameters

bstrSrcName [in]
Caller-supplied Unicode string to be translated.

pVal [out, retval]
Caller-supplied pointer to a location to receive the translated string.

Return value

Return code Description
S_OK The operation succeeded.
E_POINTER At least one of the parameters does not point to a valid memory location.

VBScript Example

Dim OleCvt, strPrinter, strEncodedPrinter
Set OleCvt = Server.CreateObject("OlePrn.OleCvt")
strEncodedPrinter = Request ( "eprinter" )
strPrinter = OleCvt.DecodeUnicodeName (strEncodedPrinter)

Requirements

Target platform: Desktop