Hi
I have developed the following code . In the below mentioned code ivaluebuffer has been used in the header helloworldbasicappui.h and is declared as public. i need to get the values from ivaluebuffer to msg.cpp class. I tried to get that by creating an object, but am getting a null value. Please help me to solve this
helloworldbasicappui.cpp
decalaration ivaluebufferCode:void CHelloWorldBasicAppUi::ConstructL() { TBuf<50> avalue; TBuf<50> bvalue; avalue.Num(ivalue, numberFormat); avalue.Num(ivalue1, numberFormat); bvalue.Append(lbvalue); ivaluebuffer.Copy(avalue); }
helloworldbasicappui.h
msg.cppCode:class CHelloWorldBasicAppUi : public CAknAppUi { public: // Constructors and destructor TBuf<50> ivaluebuffer; /** * ConstructL. * 2nd phase constructor. */ void ConstructL();
Code:CHelloWorldBasicAppUi* derived =new (ELeave) CHelloWorldBasicAppUi(); _LIT("number","07655556") TRAP(error, SendSmsL(number, derived->ivaluebuffer));

Reply With Quote


