Namespaces
Variants
Actions

Archived:Sending USSD messages using Symbian C++

Jump to: navigation, search
Archived.png
Archived: 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

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.
151 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved