| « Previous Thread | Next Thread » |
|
This week we introduce a new Interview method, Ask the Expert. Unlike the interviews that took several weeks for answers our expert will answer these questions during the week that they are asked, hopefully the day they are asked.
This week our expert is ltomuta a senior engineer that specializes in Symbian C++. If you have any question about Symbian C++, the SDK, API or anything at all please take advantage this week to "ask the expert". Ron |
|
I have a problem about Undefined symbol.
I would like to insert text to TDesArray by using : array->InsertL(pos,* newItemText); When compiling, the result show error massage : Undefined symbol: 'void CDesC16Array::InsertL(int,class TDesC16 const &) (?InsertL@CDes16Array@@QAEXHABVTDesC16@@@Z)' and referenced from ' void CFirstContainer::ListInsertL(void) (?ListInsertL@CFirstContainer@@QAEXXZ)' in FirstContainer.cpp:93 Initially, this function is in the code, copied from the Nokia training program(S60UIControlsLab), yet when copying to my project, it does not work. Please tell me how to fix this as the below detail remark if you want more detail,pls mail to kittinut_k@hotmail.com The ListInsertL function in FirstContainer.cpp void CFirstContainer::ListInsertL() { TBuf<EMaxListEntryLen> textData; CAknTextQueryDialog* dlg = CAknTextQueryDialog::NewL(textData, CAknQueryDialog::ENoTone); if (dlg->ExecuteLD(R_TEXT_QUERY)) // * User press OK or not, display the query dialog { CDesCArray* array = static_cast<CDesCArray*>(iList->Model()->ItemTextArray()); HBufC* newItemText = PrependTabLC(textData); TInt pos = iList->CurrentItemIndex(); array->InsertL(pos,* newItemText); iList->HandleItemAdditionL(); CleanupStack::PopAndDestroy(); // newItemText; } } The PrependTabLC function HBufC* CFirstContainer::PrependTabLC(const TDesC& aText) const { HBufC* text = HBufC::NewLC(KTabString().Length() + aText.Length()); *text = KTabString; TPtr refText = text->Des(); refText.Append(aText); return text; } |
| kittinut_k |
| View Public Profile |
| Find all posts by kittinut_k |
|
I would like to use my Symbian phone to get the image from server. The server is connected to internet and Symbian phone will be used to view the image, received from the server.
Actually, I think the PHP programming will be created, but the client side program or engine is the unknown for me. Please tell me how to carry out it. |
| kittinut_k |
| View Public Profile |
| Find all posts by kittinut_k |
|
Quote:
Go to the SDK documentation and search for CDesC16Array. You will find that is defined in header: ???????.h and library ????.lib. Add that library to your MMP file, re-generate the project and rebuild. The problem should disappear ... unless you run into another one. -- Lucian Today's useful link: On device debugging - screencasts Yesterday's useful link: How do I start programming for Symbian OS? Latest blog post: Build without an SDK, test without a device
Last edited by ltomuta : 2007-12-03 at 21:06.
Reason: Typos, lots of them..
|
|
Quote:
The Browser Control API is available since S60 2nd Edition, FP3. Examples applications can be found in the SDK. If you need to implement your own engines look for the following example applications provided by Forum Nokia:
-- Lucian Today's useful link: On device debugging - screencasts Yesterday's useful link: How do I start programming for Symbian OS? Latest blog post: Build without an SDK, test without a device
|
|
Hello,
I would like to know if there is any support in Symbian for showing tables inside CEikRichTextEditor or if you have to draw it completly yourself? Regards and thanks lkz633 |
|
Quote:
as far as I know the control does not support tables and quite frankly I don't see tables as a must have feature on a phone's small screen. However, I'll look around and get a final answer on this soon. Update: One clever way of solving the lack of table support is to substitute it with a image representation. Of course you will have to take care of rendering the table and the solution is obviously feasible only for read-only documents. (Thanks symbianyucca!) Best regards,
Last edited by ltomuta : 2007-12-10 at 18:36.
Reason: Updated with workaround suggestion
|
|
Hi,
How do I add new fonts(like Telugu,Tamil and other Indian Languages which dont have support on Nokia Browser) to the Nokia Browser of S60 3rd edtion devices.By default it supports Hindi language, but not other Indian Languages. Is there a way to do that just like our desktop browsers(I know that its not that easy here) ? What is the best solution to make Nokia Browser support above mentioned unicode languages? Thank You, regards, VVS.Naresh -- |
|
Hi,
I want to do something I thought should be simple... I want to change the background bitmap and colours of the status icons and navigation bar in my application only. Is there an easy way to do this? Do I have to use the Skins API? Are there any examples anywhere? There seem to be examples for creating skin aware controls but not manipulating the skin using graphics in your applications standard resources (mbm and aif files). Is this possible or do I have to create a skin/theme? Many thanks in advance, Sorcery |
| Sorcery-ltd |
| View Public Profile |
| Find all posts by Sorcery-ltd |
|
Quote:
I'm not aware of any easy way of doing this. As for a complicated one ... I will have to look for it as this is something I've never done before. Creating your own theme it will not help much as there is no way to have a per application skin and then you cannot prevent the user from changing its preferred theme to one that is not suitable for your application. Changing the theme dynamically every time your application transitions between foreground and background would have serious performance issues. Best regards, (to be continued ...)
Last edited by ltomuta : 2007-12-10 at 18:34.
Reason: Removed signature
|
|
Quote:
On first look I am tempted to say that yes, the solution must be the same as in desktop browsers and that if the font is available in the system (system\fonts) the browser will load it. The WebKit is open source so you can actually have a look and see if the browser has any special font selection mechanism. (to be continued ...)
Last edited by ltomuta : 2007-12-10 at 18:35.
Reason: Removed signature
|
|
Hello, expert. Thanks for such an Interview.
My question is: The RConnection class has Attach() method to associate it with an underlying interface. I need to create such an underlying interface. My task is to take all outgoing (maybe incoming) TCP/IP packets and encapsulate them into Bluetooth® packets for further wireless transmission. Thanks a lot Konstantine |
|
Quote:
Rather than starting their own interfaces (some times this would not be even possible) the applications have the choice of attaching themselves to an already existing connection/interface. The attachment type is set to EAttachTypeMonitor if a system control type of application wishes to monitor the state of the connection without otherwise affecting it. In particular, the interface idle timers will not be affected. The attachment type is set to EAttachTypeNormal if the application wishes to use the connection for normal data transfer. In this case the idle timers will take that into account. Once the connection started (or attached) a socket can be open to send data through that particular interface. It is also possible to query the amount of data sent or received through the interface but you cannot get access to the data itself (unless of course you own the socket).
Last edited by ltomuta : 2007-12-10 at 18:33.
Reason: Removed signature
|
|
i have problem about symbian 3rd.
when i download a file by s60 browser,the file successfully associate with my application ,and the application 's method CxxxDocument::OpenFileL(CFileStore*& aFileStore, RFile& aFile) will be called,so i can deal with the file by the parameter aFile. now the problem is that: when the application is running in the backgroud,when i download a file by s60 browser,the file doesn't associate with my application successfully,the CxxxDocument::OpenFileL method is not called but the application is put in foregroud. my application is stand-alone mode,the APP_REGISTRATION_INFO like below: RESOURCE APP_REGISTRATION_INFO { app_file="testapp"; localisable_resource_file = "\\resource\\apps\\testapp"; localisable_resource_id = R_MEDIACLIENT_LOCALISABLE_APP_INFO; embeddability=KAppNotEmbeddable; newfile=KAppDoesNotSupportNewFile; datatype_list = { DATATYPE { priority = EDataTypePriorityHigh; type = "application/newx"; }, DATATYPE { priority = EDataTypePriorityHigh; type = "application/newxx"; } }; } this problem puzzle me for one week,is it impossible to recieve any message when the application is runing in the background.if it is possible,how can i do it,which method will be call in my application to deal with the passed parameter. |
|
Quote:
You need to implement the PreDocConstructL in your handler application and in it decide if the existing instance should be terminated or rather it should be notified that a new document is available. P.S. From SDK's documentation: "EDataTypePriorityHigh should only be assigned under exceptional conditions, e.g. if no other application could ever handle a particular MIME type as brilliantly." ![]() Quote:
Quote:
Quote:
Yes, the message can be sent though TApaTask::SendMessage(). To receive the message you will have to override the ProcessMessageL() method in your apps' CEikAppUi derived class. Please see the SDK help for more information. Quote:
)
Last edited by ltomuta : 2007-12-10 at 18:31.
Reason: Answer follow-up questions.
|
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Symbian C++ or MDIP: some newbie questions | sgalmeida | General Symbian C++ | 2 | 2006-12-30 09:57 |
| A little survey regarding Java vs Symbian C++ | Olnex | Mobile Java General | 0 | 2006-11-01 10:00 |
| Question regarding Java vs Symbian C++ | Olnex | Mobile Java General | 5 | 2006-09-28 00:53 |
| How Can I Use TSmsUserDataSettings in Symbian 6.1? | ilsocio | General Symbian C++ | 2 | 2003-08-19 17:39 |
| setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking | servigo | Mobile Java Networking & Messaging & Security | 2 | 2003-07-31 08:47 |