Sample Code
Windows Driver Samples/ XPSDrv Driver and Filter Sample/ C++/ src/ filters/ common/ widetoutf8.h/
/*++ Copyright (c) 2005 Microsoft Corporation All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. File Name: widetoutf8.h Abstract: The CWideToUTF8 class converts a Unicode character string into the UTF-8 code page format. --*/ #pragma once class CWideToUTF8 { public: CWideToUTF8( CStringXDW* pcstrWide ); virtual ~CWideToUTF8(); HRESULT GetBuffer( _Outptr_ PVOID* ppBuffer, _Out_ ULONG* pcbBuffer ); private: VOID FreeBuffer(); private: CStringXDW* m_pcstrWide; PSTR m_pMultiByte; };
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials