Export (0) Print
Expand All

IMLangConvertCharset::GetProperty method

Gets the MLCONVCHAR constants that the Conversion object sets.

Syntax


HRESULT GetProperty(
  [out]  DWORD *pdwProperty
);

Parameters

pdwProperty [out]

A pointer to an unsigned long integer that receives the property value.

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

A client checks this value to see if the Conversion object has detected the code page of the source string. This check can be done with the code fragment in the example.

Examples

This code fragment shows how to check to see if the source code page has been detected.


pMLCC->GetProperty(&dwProp);

// See if the code page has been detected.

if (dwProp & MLCONVCHARF_AUTODETECT) 
{
    // It has been. Now you can determine which code page it is.

	pMLCC->GetSourceCodePage(&uiSrcCodePage);
        :
}

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IMLangConvertCharset
Reference
Initialize
CreateConvertCharset

 

 

Build date: 11/17/2013

Show:
© 2014 Microsoft