Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

29 lines
507 B

#include "precomp.h"
#pragma hdrstop
#include "stdstring.h"
using namespace std;
extern HINSTANCE g_hInstance;
int CStdString::LoadString(UINT uID)
{
ATLASSERT(uID);
CHAR szBuff[1024];
int iLen;
iLen = ::LoadStringA(g_hInstance, uID, szBuff, 1024);
if(iLen)
{
*this = szBuff;
}
else
{
ATLASSERT(FALSE); //Test should catch this if there is an international string longer than 1024 chars. (not likely)
*this = "";
}
return iLen;
}