×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2003
    Location
    Portugal
    Posts
    22

    Resource not recognized

    Hi, i'm new at this. Here's my question:

    I´m trying to construct a CAknIntegerEdwin with this:

    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader, R_C_NUM);
    control = new(ELeave) CAknIntegerEdwin;
    control->SetContainerWindowL(*this);
    control->ConstructFromResourceL(reader);
    CleanupStack::PopAndDestroy();
    control->SetExtent(TPoint(10,10),TSize(10,10));



    I have in the resource file this:

    RESOURCE AVKON_INTEGER_EDWIN r_c_num
    {
    min = 1;
    max = 100;
    }


    and it gives me this error:

    C:\SYMBIAN\6.1\SERIES60\SERIES60EX\OLA1\SRC\Ola1container.cpp(44) : error C2065: 'R_C_NUM' : undeclared identifier

    What am i missing?

  2. #2
    Registered User
    Join Date
    Apr 2003
    Location
    Portugal
    Posts
    23
    Have you included the resource file? Something like

    #include <app.rsg>

    The rsg extention is for the compiled resource file.

Posting Permissions

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