×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    4

    Error Loading text from rss file

    Hi,

    I have the following text reource in my rss file and need to load it and display it.


    RESOURCE TBUF r_maxmenu_main_option1
    {
    buf = "Play Game";
    }

    When i compile i get the following,

    C:\MAXMENU\SRC\Maxmenucontainer.cpp(60) : error C2065: 'R_MAXMENU_MAIN_OPTION1' : undeclared identifier
    Error executing cl.exe.

    Any idea what im missing - a header file or something ?

    Many thanks

    Mike

  2. #2
    Regular Contributor
    Join Date
    Oct 2003
    Location
    England
    Posts
    167
    missing the .hrh file perhaps?

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    4
    Thanks for the reply.

    There is an include for the hrh file from within the rss file itself -but thats the only place i can see it.

    The framework was created with app wizard 1.9 and then ive added the strings to the rss file manualy .

    Whatever ive tried gives the same error...

    any further advice would be appreciated.

  4. #4
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122

    rsg file

    The resource compiler creates a .rsg file (in epoc32\include) that maps resource names like R_MAXMENU_MAIN_OPTION1 to numeric identifiers. You'll have to #include this .rsg file in your .cpp files that need resource identifiers.

    Lauri

  5. #5
    Registered User
    Join Date
    Dec 2003
    Posts
    4
    Lauri,

    Many thanks - thats the piece of info i was missing.

    I wont need to throw the 3650 at the wall any more today

    cheers

    Mike

Posting Permissions

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