Results 1 to 5 of 5

Thread: viewing the resource files!

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    viewing the resource files!

    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?
    Baaaaaaaaah

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Post I know that I will have to write the code

    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?
    Baaaaaaaaah

  4. #4
    Member
    Join Date
    Feb 2001
    Posts
    57

    It's annoying but...

    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

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width