#include <tchar.h>
#include <windows.h>struct
{
int iStyle ;
TCHAR * szText ;
}
button[] =
{
BS_GROUPBOX, _T("编程语言"),
BS_AUTORADIOBUTTON, _T("c++"),
BS_AUTORADIOBUTTON, _T("java") } ;不兼容warning C4133: 'initializing' : incompatible types - from 'char [9]' to 'unsigned short *'vc6+win7
#include <windows.h>struct
{
int iStyle ;
TCHAR * szText ;
}
button[] =
{
BS_GROUPBOX, _T("编程语言"),
BS_AUTORADIOBUTTON, _T("c++"),
BS_AUTORADIOBUTTON, _T("java") } ;不兼容warning C4133: 'initializing' : incompatible types - from 'char [9]' to 'unsigned short *'vc6+win7
我一般在不涉及MFC时用TEXT
在涉及到MFC时,TEXT&_T都用
建议你换更高的编译环境
*tchar.h - definitions for generic international text functions
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Definitions for generic international functions, mostly defines
* which map string/formatted-io/ctype functions to char, wchar_t, or
* MBCS versions. To be used for compatibility between single-byte,
* multi-byte and Unicode text models.
*
* [Public]
*
****/
我在VC6+WinXP下没发现有楼主的问题