×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    18

    Two resource files

    Hi

    I want to use two .rss files for my application. If i declare all the resource structures in one single file, it works alright.

    But if i put some resource sructure in the second file, the application panics as soon as that resource is required.

    Kindly help
    Harshdeep

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Hello,

    There
    http://discussion.forum.nokia.com/fo...ce+AND+Br+V%2A
    You can find one example i have succesfully used.

    Br V

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    I defined the view, which will be shared by more application in ConstructL of view I put those lines:

    TFileName rss_path = CEikonEnv::Static()->EikAppUi()->Application()->AppFullName();
    TParsePtr parse( rss_path );
    rss_path.Copy( parse.DriveAndPath() );
    rss_path.Append(_L("Shared_view.rsc"));
    iRSSOffset = CEikonEnv::Static()->AddResourceFileL( rss_path );
    BaseConstructL( R_SHARED_VIEW );

    If you dont add the resource CONE 14 error is raised.

    in destructor of view must be called or CONE 28 error is raised.

    CEikonEnv::Static()->DeleteResourceFile( iRSSOffset );

    Bye
    STeN

Posting Permissions

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