This category contains 5 posts

Symbian – TPtrC to TText* conversions

To create a TText* from a TPtrC we need to access the Ptr() function of TPtrc. Here is the sample code snippet To Create a TPtrC using a TText* is same as that of creating a TPtrC from a TBuf either using the constructor or the Set method Advertisements

Symbian – TBuf/TBufC to TPtrC conversions

To Create a TPtrC from TBuf/TBufC is straight forward and can be achieved in two ways, Using the constructor Using the Set Method Here you go, The variable buffer can be of either TBuf or TBufC To convert a TPtrC to TBufC is pretty simple Once the we have the TBufC we can convert it … Continue reading

Symbian – TBufC to TBuf conversions

This is the first post in the series of Symbian Descriptors conversions. If you want to learn the basics of String and Descriptors, check out this link. The first one is TBufC to TBuf Conversion. A TBuf can be obtained from a TBufC using the Des() method of TBufC Here is a simple code snippet … Continue reading

Symbian – Launch an application with UID

I had been working on Symbian application development for quite some time now and this was the first code snippet I had written.

Symbian – TBuf to char*

One common problem that we face while developing for Symbian devices is the conversion of TBuf to char*. Here is how we do it, now str contains the buffers contents.