本文整理汇总了C++中CAtlString::LoadString方法的典型用法代码示例。如果您正苦于以下问题:C++ CAtlString::LoadString方法的具体用法?C++ CAtlString::LoadString怎么用?C++ CAtlString::LoadString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAtlString
的用法示例。
在下文中一共展示了CAtlString::LoadString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OpenLog
void CIISxpressHttpModule::OpenLog(IHttpContext* pHttpContext)
{
if (pHttpContext != NULL && m_Config.GetLoggingLevel() >= IISXPRESS_LOGGINGLEVEL_BASIC)
{
CAtlString installPath;
m_Config.GetInstallPath(installPath);
if (installPath.GetLength() > 0)
{
CPathT<CAtlString> LogPath(installPath);
LogPath.Append(_T("\\Logs"));
if (LogPath.IsDirectory() == FALSE)
{
::CreateDirectory(LogPath, NULL);
}
CAtlString sLogFilePrefix;
sLogFilePrefix.LoadString(IDS_LOGFILENAMEPREFIX);
CAtlString sAppName;
if (GetAppPoolName(pHttpContext, sAppName) == true)
{
sLogFilePrefix += sAppName;
sLogFilePrefix += "-";
}
m_Log.Init(LogPath, sLogFilePrefix, _T("log"));
}
}
}
示例2: AddDialogToTree
HTREEITEM DlgSettingsMain::AddDialogToTree(const UINT id, const std::shared_ptr<DlgSettingsBase>& newDlg, CRect& rect, HTREEITEM htiParent /*= NULL*/)
{
newDlg->Create(m_hWnd, rect);
newDlg->SetWindowPos(HWND_TOP, rect.left, rect.top, 0, 0, SWP_NOSIZE);
CAtlString strName;
strName.LoadString (id);
HTREEITEM hItem = m_treeCtrl.InsertItem(strName, htiParent, NULL);
if (hItem != NULL) m_settingsDlgMap.insert(SettingsDlgsMap::value_type(hItem, newDlg));
return hItem;
}