| | |
vc++ problem."resource.h"
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 0
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
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.
this program is to attach a menu to a window
c++ Syntax (Toggle Plain Text)
#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;
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.
Last edited by Ancient Dragon; Dec 31st, 2007 at 7:21 am. Reason: add code tags
![]() |
Similar Threads
- Change IE "Action Canceled" page?? (Web Browsers)
- <@ import Namespace "MathService"> , or was not found. (ASP.NET)
- while function and "mysql_fetch_assoc() not a valid MySQL result resource" (PHP)
- more "home search assistent" fun... (Viruses, Spyware and other Nasties)
- "Dirty/sticky" optical mouse (Windows NT / 2000 / XP)
- Can't remove "about:blank" homepage. Please help. (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: how to choos a path
- Next Thread: How to hide input from displaying on screen
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






