What's wrong with it ?Could you help me?
Excuse me ,I have a piece of programme I don''t understand.
The codes are:
//EXAMPLEH2.RC
#include "resource.h"
IDR_MENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit",IDM_EXIT
END
END
//RESOURCE.H
#define IDR_MENU 102
#define IDM_EXIT 40001
These codes above are picked up in <>.I wonder whether it was written in C++.Was it
in VB,Delphi or other computer language?The other question is why
it was written like this .Is it the only way?Could you give me C++ codes but the same effect .
the .rc file is a resource file, it''s not written in a programming language like c, c++, delphi, or vb.
the .h file is a header. although headers can have everything a .c or .cpp program can have, headers included by the resource files usually only have #defines that map symbolic identifiers (IDM_EXIT, IDR_MENU) to number values (40001, 102).
altogether, that is not a program. when compiled, .rc files produce .res files - compiled resources. not .exe or .dlls.
the .h file is a header. although headers can have everything a .c or .cpp program can have, headers included by the resource files usually only have #defines that map symbolic identifiers (IDM_EXIT, IDR_MENU) to number values (40001, 102).
altogether, that is not a program. when compiled, .rc files produce .res files - compiled resources. not .exe or .dlls.
January 26, 2003 03:06 AM
What niyaw said. Just wanted to add that your resource file snippet defines a window menu. When you make changes in VC''s menu editor, this is the code that gets changed. In VC, there''s usually no need to edit rc files manually.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement