use of RESOURCE TBUF32 r_sms_server_session { buf=qtn_sms_server_session; }

Login to reply to this topic.
Fri, 2007-11-02 16:16
Joined: 2007-11-02
Forum posts: 37

Hi,
I wanted to trace through my code by printing strings at some points.

in xxx.rss file
----------------

RESOURCE TBUF32 r_sms_server_session { buf=qtn_sms_server_session; }
RESOURCE TBUF32 r_sms_server_session_error { buf=qtn_sms_server_session_error; }

in xxx.rls file
-----------------
#define qtn_sms_server_session "sms_server_session"

#define qtn_sms_server_session_error "sms_server_session_error"

in xxxSmsHandler.cpp file
--------------------------
HBufC* textResource1 = StringLoader::LoadLC( R_SERVER_SESSION);
CAknInformationNote* informationNote;

informationNote = new ( ELeave ) CAknInformationNote;

// Show the information Note with
// textResource loaded with StringLoader.
informationNote->ExecuteLD( *textResource1);

// Pop HBuf from CleanUpStack and Destroy it.
CleanupStack::PopAndDestroy( textResource1 );

and I get errror
-----------------

undefined identifier 'R_SERVER_SESSION'


Fri, 2007-11-02 17:59
Joined: 2005-11-20
Forum posts: 1242
r_sms_server_session

Shouldn't that be R_SMS_SERVER_SESSION instead of only R_SERVER_SESSION?

If this is only wrong here in your posting, but not in the original source, next question would be: Do you import the .rsg file?


René Brunner

Sat, 2007-11-03 02:33
Joined: 2007-11-02
Forum posts: 37
Re: use of RESOURCE TBUF32 r_sms_server_session { buf=qtn_sms_se

THAT was a stupid stuff from me.

I checked at least 3 times for both the names of resources, but could not spot it out.

Thanks and Regards

  • Login to reply to this topic.