首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

定义中间出现大写如何就不识别了

2012-03-16 
定义中间出现大写怎么就不识别了#includewindows.h#includeresource.h #defineID_TIMER1LRESULTCALLBA

定义中间出现大写怎么就不识别了
#include   <windows.h>
#include   "resource.h "

#define   ID_TIMER   1

LRESULT   CALLBACK   WndProc   (HWND,   UINT,   WPARAM,   LPARAM)   ;

TCHAR   szAppName[]   =   TEXT   ( "Menudemo ");

int   WINAPI   WinMain   (HINSTANCE   hInstance,   HINSTANCE   hPrevInstance,
                                        PSTR   szCmdLine,   int   iCmdShow)
{
          HWND           hwnd   ;
          MSG             msg   ;
          WNDCLASS   wndclass   ;
         
          wndclass.style                   =   CS_HREDRAW   |   CS_VREDRAW   ;
          wndclass.lpfnWndProc       =   WndProc   ;
          wndclass.cbClsExtra         =   0   ;
          wndclass.cbWndExtra         =   0   ;
          wndclass.hInstance           =   hInstance   ;
          wndclass.hIcon                   =   LoadIcon   (hInstance,szAppName);//MAKEINTRESOURCE(MenuDemo))   ;
          wndclass.hCursor               =   LoadCursor   (NULL,   IDC_ARROW)   ;
          wndclass.hbrBackground   =   (HBRUSH)   GetStockObject   (WHITE_BRUSH)   ;
          wndclass.lpszMenuName     =   szAppName;//MAKEINTRESOURCE   (MenuDemo)   ;//szAppName   ;
          wndclass.lpszClassName   =   szAppName   ;


我把上面的szAppName   中内容写入MenuDemo,就把d写成大写的D,并把.rc中的menu的名字也改成MenuDemo,程序就识别不出来。改成小写的就没事,这是怎么回事啊?

[解决办法]
无非就是一个名字,随便起的,大小写无所谓,只要做到统一就可以了
[解决办法]
这么修改,
还需要在 资源映射部分 修改名称 ..

热点排行