I know that this is a c++ forum but im a college student and i cant practice the programs without clearing this problem coz most of the programs require "resource.h"
this program is to attach a menu to a window
#include<afxwin.h>
#include"resource.h"
class myframe:public CFrameWnd
{
public:
myframe()
{
Create(0,"hello mfc",WS_OVERLAPPEDWINDOW,rectDefault,0,MAKEINTRESOURCE(IDR_MENU1));
}
};
class myapp:public CWinApp
{
public:
int InitInstance()
{
myframe *p;
p=new myframe;
p->ShowWindow(3);
m_pMainWnd=p;
return 1;
}
};
myapp a;
THIS IS THE ERROR IM GETTING ON COMPLING THE PROGRAM.
fatal error C1083: Cannot open include file: 'resource.h': No such file or directory
I have already clicked on insert then resource then menu then new.
After this i saved it and put script 1 in the same drive,ie C Drive Program files.
I then right clicked resource and clicked on add file folder.
what have I done wrong or what more must I do.
For any of u who have Yashavant Kanethkar's Visual C++ programing.this program is from there.Ch3:Introuction to MFC.
Thanks a lot.