Tuesday, January 12, 2016
s60 of a problem
#define URL_NET_UPDATE_SOFTWARE "stat.qtsoft.com.cn/update.asp?a=ps1"
void CCallInfoAppUi :: StartWAPBrowse (const TDesC & amp; aUrl);
CCallInfoAppUi * pUi = STATIC_CAST (CCallInfoAppUi *, CEikonEnv :: Static () - & gt; AppUi ());
TBuf16 & lt; 200 & gt; url (URL_NET_UPDATE_SOFTWARE);
pUi- & gt; StartWAPBrowser (url);
Compile error, how to solve this problem?
D: \ SYMBIAN \ PROJECT \ CALLINFO \ SRC \ Netlist.cpp (127): error C2664: '__thiscall TBuf16 & lt; 200 & gt; :: TBuf16 & lt; 200 & gt; (int)': can not convert parameter 1 from 'char [36]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Solution, the interface can not be changed StartWAPBrowse, the other can be changed.
Reply:
#define URL_NET_UPDATE_SOFTWARE "stat.qtsoft.com.cn/update.asp?a=ps1"
_LIT (URL_NET_UPDATE_SOFTWARE, "stat.qtsoft.com.cn/update.asp?a=ps1");
Reply:
#define URL_NET_UPDATE_SOFTWARE "stat.qtsoft.com.cn/update.asp?a=ps1"
On the top floor, or in a file in the above definition
Reply:
Tbuf put the resource file and then read it out to be incorrect.
Reply:
Top, good to Jietie
Reply:
define URL_NET_UPDATE_SOFTWARE _L16 ("stat.qtsoft.com.cn/update.asp?a=ps1")
Or
TBuf16 & lt; 200 & gt; url (_L16 (URL_NET_UPDATE_SOFTWARE));
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment