You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
//******************************************************************************
|
|
//
|
|
// StringBlast.h: Microsoft LocStudio
|
|
//
|
|
// Copyright (C) 1996-1997 by Microsoft Corporation.
|
|
// All rights reserved.
|
|
//
|
|
//******************************************************************************
|
|
|
|
#if !defined(MITUTIL__StringBlast_h__INCLUDED)
|
|
#define MITUTIL__StringBlast_h__INCLUDED
|
|
|
|
//------------------------------------------------------------------------------
|
|
struct LTAPIENTRY StringBlast
|
|
{
|
|
// Fast Win32 conversions
|
|
static CLString MakeString(_bstr_t bstrSrc);
|
|
static CLString MakeString(const CPascalString & pasSrc);
|
|
static CLString MakeStringFromBStr(BSTR bstrSrc);
|
|
static CLString MakeStringFromWide(const wchar_t * szwSrc);
|
|
|
|
static _bstr_t MakeBStr(const char * szBuffer);
|
|
static _bstr_t MakeBStrFromWide(const wchar_t * wszBuffer);
|
|
static _bstr_t MakeBStr(const CLString & stSrc);
|
|
static _bstr_t MakeBStrFromBStr(BSTR bstrSrc);
|
|
static _bstr_t MakeBStr(const CPascalString & pasSrc);
|
|
static _bstr_t MakeBStr(HINSTANCE hDll, UINT nStringID);
|
|
|
|
// Use these functions when you need to get a raw BSTR
|
|
static BSTR MakeDetachedBStr(const char * szBuffer);
|
|
static BSTR MakeDetachedBStrFromWide(const wchar_t * wszBuffer);
|
|
static BSTR MakeDetachedBStr(const CLString & stSrc);
|
|
|
|
};
|
|
|
|
#endif // MITUTIL__StringBlast_h__INCLUDED
|