I used this code:
Code:
      CreateWindowL();
      SetRect( aRect );
      TResourceReader reader;
      iCoeEnv->CreateResourceReaderLC(reader, R_STARTTIME);
      iEdwin = new(ELeave) CEikRichTextEditor(TGulBorder::EThickDeepRaisedWithOutline);
      iEdwin->SetContainerWindowL(*this);
      iEdwin->ConstructFromResourceL(reader);
      CleanupStack::PopAndDestroy(); // reader
      iEdwin->SetExtent(TPoint(0,20),TSize(85,20));
      iEdwin->SetBackgroundColorL(KRgbDarkRed);
      iEdwin->SetFocus(ETrue);
      ActivateL();
      iEdwin->SetCursorPosL(0, EFalse);


//.rss
RESOURCE RTXTED r_starttime
{
 width = 85;
 height = 20;
 textlimit = 50;
 flags = EEikEdwinReadOnly | EEikEdwinAvkonDisableCursor;
 
}
it gives me this error:
Code:
undefined identifier 'R_STARTTIME'