#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

解决方案 »

  1.   

    还有这种现象
    我一般在不涉及MFC时用TEXT
    在涉及到MFC时,TEXT&_T都用
      

  2.   

    要把 _T 改为 TEXT 
      

  3.   

    _T是MFC或者ATL的,你换成TEXT,另外我在2005或者2008下是没警告的,
    建议你换更高的编译环境
      

  4.   

    tchar.h 就有_T啊,不是MFC或者ATL的吧/***
    *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下没发现有楼主的问题