VC 编程 LoadString()函数使用有关问题

VC 编程 LoadString()函数使用问题
本帖最后由 fangluerxu 于 2013-03-12 21:34:23 编辑
源代码的前一个片段如下,用C语言显示一个 bmp 文件。完整的源代码在这里:
http://www.cnblogs.com/muyun/archive/2013/01/18/2866767.html

我用VC6.0 编译了,老是提示代码中第四十一行的标示符没有定义
error C2065: 'IDC_IMAGETEMPLATE' : undeclared identifier



// ImageTemplate.cpp : Defines the entry point for the application.
 //
 
 #include "stdafx.h"
 #include "resource.h"
 #include "stdio.h"
 
 #define MAX_LOADSTRING 100
 //自己加的宏
 #define WIDTHBYTES(i) ((i+31)/32*4)
 
 // Global Variables:
 HINSTANCE hInst;                                // current instance
 TCHAR szTitle[MAX_LOADSTRING];                                // The title bar text
 TCHAR szWindowClass[MAX_LOADSTRING];                                // The title bar text
 //自己的全局变量
 BITMAPFILEHEADER bf;
 BITMAPINFOHEADER bi;
 HPALETTE hPalette;
 HBITMAP hBitmap ;
 HGLOBAL hImgData;
 
 // Foward declarations of functions included in this code module:
 ATOM                MyRegisterClass(HINSTANCE hInstance);
 BOOL                InitInstance(HINSTANCE, int);
 LRESULT CALLBACK    WndProc(HWND, UINT, WPARAM, LPARAM);
 LRESULT CALLBACK    About(HWND, UINT, WPARAM, LPARAM);
 BOOL LoadBmpFile(HWND hWnd,char *BmpFileName);
 
 int APIENTRY WinMain(HINSTANCE hInstance,
                      HINSTANCE hPrevInstance,
                      LPSTR     lpCmdLine,
                      int       nCmdShow)
 {
      // TODO: Place code here.
     MSG msg;
     HACCEL hAccelTable;
 
     // Initialize global strings
     LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
     LoadString(hInstance, IDC_IMAGETEMPLATE, szWindowClass, MAX_LOADSTRING);
     MyRegisterClass(hInstance);
 
     // Perform application initialization:
     if (!InitInstance (hInstance, nCmdShow)) 
     {