Changed: Use _T macro and TCHAR to support UNICODE
--HG-- branch : develop
This commit is contained in:
parent
556590e73a
commit
2cbb1614d4
3 changed files with 5 additions and 6 deletions
|
@ -23,7 +23,6 @@
|
||||||
|
|
||||||
#include <nel/ligo/primitive_class.h>
|
#include <nel/ligo/primitive_class.h>
|
||||||
#include <nel/ligo/zone_region.h>
|
#include <nel/ligo/zone_region.h>
|
||||||
#include <hash_set>
|
|
||||||
|
|
||||||
#if _MSC_VER > 1000
|
#if _MSC_VER > 1000
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
|
@ -127,14 +127,14 @@ void CDialogFlags::init(CSoundPlugin *plugin)
|
||||||
col.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT;
|
col.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT;
|
||||||
col.fmt = LVCFMT_LEFT;
|
col.fmt = LVCFMT_LEFT;
|
||||||
col.cx = 140;
|
col.cx = 140;
|
||||||
col.pszText = "bank names";
|
col.pszText = _T("bank names");
|
||||||
col.cchTextMax = sizeof("bank names");
|
col.cchTextMax = _tcslen(col.pszText)+1;
|
||||||
_SbList.InsertColumn(0, &col);
|
_SbList.InsertColumn(0, &col);
|
||||||
|
|
||||||
col.fmt = LVCFMT_RIGHT;
|
col.fmt = LVCFMT_RIGHT;
|
||||||
col.cx = 50;
|
col.cx = 50;
|
||||||
col.pszText = "size";
|
col.pszText = _T("size");
|
||||||
col.cchTextMax = sizeof("size");
|
col.cchTextMax = _tcslen(col.pszText)+1;
|
||||||
_SbList.InsertColumn(1, &col);
|
_SbList.InsertColumn(1, &col);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -195,7 +195,7 @@ void CSoundPlugin::ReInit()
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
MessageBox(NULL, "Error while initializing audio mixer.\n", "ERROR", MB_ICONERROR);
|
MessageBox(NULL, _T("Error while initializing audio mixer.\n"), _T("ERROR"), MB_ICONERROR);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue