中函数swprintf处编译提示警告;该如何处理

中函数swprintf处编译提示警告;
本帖最后由 VisualEleven 于 2014-08-15 18:09:51 编辑
	case WM_CHAR:
{
TCHAR str[20]={TEXT(0)};
        swprintf(str,TEXT("%d"),wParam);
}
return 0;

d:\project\c\c_windows95\03_hellowin\main.c(80) : warning C4133: 'function' : incompatible types - from 'char [20]' to 'unsigned short *'
d:\project\c\c_windows95\03_hellowin\main.c(80) : warning C4133: 'function' : incompatible types - from 'char [3]' to 'const unsigned short *'
------解决方案--------------------
TCHAR str[20]={0};
        _stprintf(str,TEXT("%d"),wParam);