前辈们好
我用vc++2008 api编写一个windows窗口程序 不是MFC等
想导入一个自己资源 做为图标
我是这样的坐的  添加 资源 ICON 导入 导入成功
然后VC++ 自动生成了 resource.h 和 。RC文件结果出现这样的错误
错误 1 fatal error C1083: 无法打开包括文件:“resource.h”: No such file or directory //麻烦前辈们看下那里错了
//------------------全部的简单.cPP -------------
#include <windows.h>
#include <resource.h>LRESULT CALLBACK WindowProc(          
HWND hwnd,
    UINT uMsg,
    WPARAM wParam,
    LPARAM lParam
);
int WINAPI WinMain(       
HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow
)
{
WNDCLASSEX WindowClass;
static LPCTSTR szAppName = L"enwico";
HWND hWnd;
MSG msg; WindowClass.cbSize = sizeof(WNDCLASSEX);
WindowClass.style = CS_HREDRAW | CS_VREDRAW;
WindowClass.lpfnWndProc = WindowProc;
WindowClass.cbClsExtra = 0;
WindowClass.cbWndExtra = 0;
WindowClass.hInstance = hInstance;
WindowClass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
    WindowClass.hCursor = LoadCursor(0, IDC_ARROW);
WindowClass.hbrBackground = static_cast<HBRUSH>(GetStockObject(GRAY_BRUSH));
WindowClass.lpszMenuName = 0;
WindowClass.lpszClassName = szAppName;
WindowClass.hIconSm = 0; RegisterClassEx(&WindowClass); hWnd = CreateWindow(
szAppName,
L"enwico",
WS_OVERLAPPEDWINDOW,
0,
0,
800,
600,
NULL,
NULL,
hInstance,
NULL
);
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
    

while(GetMessage(&msg, 0, 0, 0) == TRUE)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return static_cast<int>(msg.wParam);
}
   
LRESULT CALLBACK WindowProc(          
HWND hwnd,
    UINT uMsg,
    WPARAM wParam,
    LPARAM lParam
)
{
HDC hDC;
PAINTSTRUCT PaintSt;
RECT aRect; switch(uMsg)
{
    case WM_RBUTTONUP:
MessageBox(hwnd,L"按下右键抬起",L"enwico",0);
return 0;    case WM_LBUTTONUP:
MessageBox(hwnd,L"按下左键抬起",L"enwico",0);
return 0; case WM_PAINT:
hDC = BeginPaint(hwnd, &PaintSt);
GetClientRect(hwnd, &aRect);
SetBkMode(hDC, TRANSPARENT);
DrawText(
hDC,
L"enwico",
-1,
&aRect,
DT_SINGLELINE|
    DT_CENTER | DT_VCENTER); 
 EndPaint(hwnd, &PaintSt);
 return 0;    case WM_CLOSE:
if(IDYES==MessageBox(hwnd,L"真的要退出吗?",L"enwico",MB_YESNO))
{
DestroyWindow(hwnd);
}
return 0;
case WM_DESTROY:
 PostQuitMessage(0);
 return 0;
default:
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}
}