PDA

Click to See Complete Forum and Search --> : viewing the resource files!


abdul
May 1st, 2001, 08:12 PM
I am using visual C++ 6. Actally I have created a dialog box in a resource file called "resource.rc" using MFC. How do I view and edit the code which is behind that MFC dialog box in the resource file?

Technocrat
May 2nd, 2001, 09:47 AM
I am not sure what you want to do, but the only code that would be in the resource file would be the coresponding INT vaules to the resource items. Do you want to do that? Or are you looking to have actions happen with your dialog box? Like when a button is clicked do this.

abdul
May 2nd, 2001, 04:33 PM
I know that I will have to write the code for each action even if I am using MFC but let us say that I have created a menubar and it have a menu which is called "File" MFC puts some code in the resource file which is hidden, something like this:

BEGIN
POPUP "&File", ID_OF_FILE
END

I know that this is not right but this is just an example. Now I want to view this code in MFC.
;)
Did you get that?

chilibean
May 2nd, 2001, 09:25 PM
To see the code you need to open the resource file up in a text editor like notepad. MS C++ just won't let you see the code for some reason.

chilibean

Technocrat
May 3rd, 2001, 10:08 AM
I have done it before by doing a search files, for some thing I knew would be in there like IDI_ICON1. Then double click on the resource.rc file when it came up in the search results.