What does this error mean ?
| Sat, 2005-06-04 16:32 | |
|
Hi,
I am looking to make a text box in helloworldbasic example.For this I have added the following code in helloworldappview.cpp Code: CreateWindowL(); and here is the resource defination codeTResourceReader reader; iCoeEnv->CreateResourceReaderLC(reader, R_HELLOWORLDBASIC_EDWIN); iEdwinName = new (ELeave) CEikEdwin; iEdwinName->SetContainerWindowL(*this); iEdwinName->ConstructFromResourceL(reader); CleanupStack::PopAndDestroy(); SizeChanged(aRect); iEdwinName->SetFocus(ETrue,EDrawNow);//set focus on first editor SetRect(aRect); ActivateL(); Code: Here's the resource definition in rss RESOURCE EDWIN r_helloworldbasic_edwin { flags = EAknEditorFlagDefault; width = 8; lines = 1; maxlength = 30; allowed_input_modes = EAknEditorAllInputModes; default_input_mode = EAknEditorTextInputMode; default_case = EAknEditorTextCase; } Other than these I ahve also made these two functions Code: CCoeControl* CCameraEditorContainer::ComponentControl(TInt aIndex) const { switch (aIndex) { case EEdwinName: return iEdwinName; default: return NULL; } } And Code: TInt CCameraEditorContainer::CountComponentControls() const { return 1; //Number of editors } Now whenI compile this on codewarrior I am getting errors in the line "TResourceReader reader;" saying that "ilegal use of Incomplete struct/union/class 'TresourceReader'" WHAT DOES THIS MEAN ? after this error the cimpiler is giving errors in allmost all the lines of the code that I have added Regards |
|






Forum posts: 176
#include <barsread.h>
You will also want to make sure that you add the library to your mmp file or you will have problems again when you link.
library bafl.lib
Darin Dishneau
www.dishneau.com/symbian
Forum posts: 14
iEdwinName = new (ELeave) CEikEdwin;
saying that "Undefined Identifier iEdwinName"
Forum posts: 34
For quality Symbian idling, join #symbian at irc.freenode.net
Forum posts: 34
  CEikEdwin* iEdwinName;
That should do the trick.