http://www.amyuni.com/WebHelp/Amyuni_Do ... verter.htm
Code: Select all
void SetLayer( HDC hDC, LPWSTR LayerInfo )
{
switch ( ExtEscape( hDC, ESCAPE_SETLAYER, (int)((wcslen(LayerInfo) + 1)* sizeof(LayerInfo[0])),(LPCSTR)LayerInfo, 0, NULL ) )
i changed it a bit to
Code: Select all
bool SetLayer( HDC hDC, std::wstring sTest )
{
auto iRet = ExtEscape( hDC, ESCAPE_SETLAYER, (int) ((wcslen( sTest.c_str( ) ) + 1) * sizeof( sTest.c_str( ) )), (LPCSTR)sTest.c_str( ), 0, NULL );