Archived:Sending USSD messages using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 3rd Edition, Feature Pack 2
S60 3rd Edition FP2
Created: User:Technical writer 1 (12 Jun 2008)
Last edited: hamishwillee (02 Jul 2012)


The SDK API Plug-in package for S60 3rd Edition, Feature Pack 2 includes the Archived:Phone Client USSD API. The Phone Client USSD API enables programmatically sending USSD (Unstructured Supplementary Service Data) requests.


  #include <CPhCltUssd.h>   // link against phoneclient.lib
// Construct CPhCltUssd and pass ETrue
// as parameter (notes are shown on screen)
CPhCltUssd* ussdClient = CPhCltUssd::NewL( ETrue );
CleanupStack::PushL( ussdClient );
TBuf<16> aMessage;
aMessage.Copy( _L("*101#") ); // USSD code for checking prepaid balance
TInt result = ussdClient->SendUssd( aMessage );
CleanupStack::PopAndDestroy( ussdClient );
This page was last modified on 2 July 2012, at 07:10.
52 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.