Condividi tramite


IMLangConvertCharset interface

Converts a string from one code page to another.

Members

The IMLangConvertCharset interface inherits from the IUnknown interface. IMLangConvertCharset also has these types of members:

  • Methods

Methods

The IMLangConvertCharset interface has these methods.

Method Description
DoConversion

Converts the given string from the source code page of the Conversion object to its destination code page.

DoConversionFromUnicode

Converts the given wide-character string from Unicode to the destination code page of the Conversion object.

DoConversionToUnicode

Converts the given string from the source multibyte code page of the Conversion object to the Unicode character set.

GetDestinationCodePage

Gets the identifier value of the destination code page of the Conversion object.

GetProperty

Gets the MLCONVCHAR constants that the Conversion object sets.

GetSourceCodePage

Gets the code page identifier value that is designated as the source code page of the Conversion object.

Initialize

Initializes the internal state of the Conversion object with the specified parameters.

 

Remarks

A client creates an instance of the Conversion by using IMultiLanguage::CreateConvertCharset or by explicitly calling CoCreateInstance. The IMLangConvertCharset methods perform more efficient character set conversions than the methods in the IMultiLanguage interface.

A caller uses this interface to perform character set conversions repeatedly that involve the same combination of source and destination code pages. This interface can also be used to reinitialize the Conversion with new source and destination code pages as many times as necessary.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll