×
Namespaces

Variants
Actions

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
Compatibility
Platform(s): S60 3rd Edition, Feature Pack 2
S60 3rd Edition FP2
Article
Created: User:Technical writer 1 (12 Jun 2008)
Last edited: hamishwillee (02 Jul 2012)

Description

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.

Solution

  #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.

×