Changed: Use _T macro and TCHAR to support UNICODE

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 556590e73a
commit 2cbb1614d4

@ -23,7 +23,6 @@
#include <nel/ligo/primitive_class.h>
#include <nel/ligo/zone_region.h>
#include <hash_set>
#if _MSC_VER > 1000
#pragma once

@ -127,14 +127,14 @@ void CDialogFlags::init(CSoundPlugin *plugin)
col.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT;
col.fmt = LVCFMT_LEFT;
col.cx = 140;
col.pszText = "bank names";
col.cchTextMax = sizeof("bank names");
col.pszText = _T("bank names");
col.cchTextMax = _tcslen(col.pszText)+1;
_SbList.InsertColumn(0, &col);
col.fmt = LVCFMT_RIGHT;
col.cx = 50;
col.pszText = "size";
col.cchTextMax = sizeof("size");
col.pszText = _T("size");
col.cchTextMax = _tcslen(col.pszText)+1;
_SbList.InsertColumn(1, &col);
}

@ -195,7 +195,7 @@ void CSoundPlugin::ReInit()
}
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);
}

Loading…
Cancel
Save