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.
35 lines
472 B
35 lines
472 B
/*++
|
|
|
|
Copyright (C) 1996-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
BSTRING.CPP
|
|
|
|
Abstract:
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#include "precomp.h"
|
|
#include "bstring.h"
|
|
|
|
CBString::CBString(int nSize)
|
|
{
|
|
m_pString = SysAllocStringLen(NULL, nSize);
|
|
}
|
|
|
|
CBString::CBString(WCHAR* pwszString)
|
|
{
|
|
m_pString = SysAllocString(pwszString);
|
|
}
|
|
|
|
CBString::~CBString()
|
|
{
|
|
if(m_pString) {
|
|
SysFreeString(m_pString);
|
|
m_pString = NULL;
|
|
}
|
|
}
|
|
|