This category contains 8 posts


Second post in the series Back to Basic Display the Nth Node from the End Advertisements


I am starting a series of posts that are targeted towards Data Structures that I had been wanting to write for a long time. They are simple code snippets. For many this might not be useful but for some, it might be. So here we go, the first one is to print the contents of … Continue reading

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

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.

BSTR to char* conversion

I have been trying to find a correct and easy solution for performing a string conversion in C++; a conversion from BSTR to Char*. I need this conversion for writing a wrapper using GSOAP. I googled but could not find a way to solve the problem. Finally I understood how _bstr_t class did the conversion … Continue reading