blob: 3b2faadd1a06b51a55e8d39224235bf87161f348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "StdAfx.h"
CMStringW CreateFilePath(const CMStringW &rsName)
{
wchar_t szPath[_MAX_PATH];
::GetModuleFileName(g_plugin.getInst(), szPath, _MAX_PATH);
wchar_t* p = wcsrchr(szPath, '\\');
if (p)
*p = 0;
CMStringW s(rsName);
FixInvalidChars(s);
return CMStringW(szPath) + L"\\CurrencyRates\\" + s;
}
|