Got an error...Code:void printText(HWND hWnd, TCHAR txt[], RECT& rc) { PAINTSTRUCT pntS; HDC hdc = BeginPaint(hWnd, &pntS); TCHAR s[] = _T(txt); TextOut(hdc, rc.left, rc.top, s, (int)_tcslen(s)); EndPaint(hWnd, &ps); }
It's complaining aboutCode:error C2440: 'initializing' : cannot convert from 'TCHAR []' to 'TCHAR []'??Code:TCHAR s[] = _T(txt);