I didn't asked you to remove view class.
Now, as per you, I modified the code and removed view class
Anyway, for your 1st error: GetText() is not a CEikLabel class' function. That is why it is giving "undefined identifier".
For your 2nd & 3rd error, if you check the documentation of CEikEdwin::SetText() then you will see that it is expecting a reference of a descriptor while you are directly passing it a descriptor. So, try to do it like