Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop

IMultiLanguage::CreateConvertCharset Method


Creates a charset Conversion Object and retrieves its corresponding IMLangConvertCharset interface.

Syntax

HRESULT CreateConvertCharset(
    UINT uiSrcCodePage,
    UINT uiDstCodePage,
    DWORD dwProperty,
    IMLangConvertCharset **ppMLangConvertCharset
);

Parameters

uiSrcCodePage
[in] Code page identifier value for the source character stream to which the caller wants the Conversion Object dedicated.
uiDstCodePage
[in] Code page identifier value for the destination character stream to which the caller wants the Conversion Object dedicated.
dwProperty
[in] One of the MLCONVCHAR-defined values. This flag indicates how to display unconvertible Unicode characters when performing Unicode-to-multibyte conversion.
ppMLangConvertCharset
[out] Address of the buffer where the client will receive an IMLangConvertCharset interface.

Return Value

Returns one of the following values:

S_OK Success.
S_FALSE The object was created but could not be initialized because the specified set of source/destination code pages is not supported.
E_FAIL The method failed to create an instance of the object.

Remarks

A client should use the Conversion Object to perform many repeated character set conversions with the same combination of source/destination code pages.

Although the IMLangConvertCharset interface is retrieved through this method, the caller is still responsible for releasing it when it is no longer needed.

See Also

IMultiLanguage, IMultiLanguage2, IMultiLanguage2::ConvertStringFromUnicodeEx, IMultiLanguage2::ConvertStringInIStream, IMultiLanguage2::ConvertStringToUnicodeEx


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site