×
Namespaces

Variants
Actions

发送USSD信息

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition FP2
S60 3rd Edition FP2

文章
翻译:
hoolee
最后由 hamishwillee 在 07 Aug 2012 编辑
  • 详细描述

S60第三版FP2的SDK API Plug-in包含了Archived:Phone Client USSD API,这个Phone Client USSD API可以允许编程发送USSD(Unstructured Supplementary Service Data)请求。


  • 解决方案
#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 7 August 2012, at 03:19.
116 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.

×