Last forum posts

[Symbian C++] CAknForm SetRect() in compound control

Hi,

Wondering if anyone could help. I'm trying to create a compund control which displays a form in the client rectangle along with a progress bar at the bottom. I've implemented the form, which is working fine. I am now trying to change the size of the form using SetRect(), compiles fine but get run time error KERN-EXEC3.
As I understand it forms are window-owning, is this anything to do with it (being component control of window-owning parent control)? Note: also haven't implemented Draw() or SizeChanged() in form..
Could anyone please let me know if this is possible/where I'm going wrong?
Many thanks,
Bruce.
P.s. code attached.

void CGQuiz1MathsQuizContainer1::ConstructL(const TRect& aRect)
         {
         CreateWindowL();
                iNumControls = 0;

        TOpponentFormOpponent opponent;
        iForm = CGQuiz1MathsQuizForm1::NewL(aRect, this, opponent);
                iNumControls = 1;

        // ExecuteLD loads, displays, and destroys the dialog
        // so dont delete in destructor... see 8)pg295
        //iForm->SetRect(aRect);
        iForm->ExecuteLD(R_MATHS_QUIZ_VIEW1_FORM_DIALOG);
                iNumControls = 0;

        SetRect(aRect);
        
         ActivateL();
         }

TInt CGQuiz1MathsQuizContainer1::CountComponentControls() const
        {
        return iNumControls; // return number of controls inside this container
        }

CCoeControl* CGQuiz1MathsQuizContainer1::ComponentControl( TInt aIndex ) const
    {
                switch (aIndex)
                {
                if (iNumControls == 1)
                        {
                case 0:
                        return iForm;
                default:
                        return NULL;
                        }
                else
                        {
                        return NULL;
                        }
            }
    }


void CGQuiz1MathsQuizForm1::ConstructL(const TRect& aRect, const CCoeControl* aParent)
         {
         CAknForm::ConstructL();
         //CreateWindowL();
         //SetContainerWindowL(*aParent);
         SetRect(aRect);
         //SetRect(ClientRect());
         //ActivateL();
         }

[Internet] Re: Checking user account balance

Thank you N_A.

[Internet] Re: Checking user account balance

There are no Symbian APIs for that. There are no standard intefaces/protocols for a phone to check the account balance. With some operators you can call the to get it. With others you can get it with a specific SMS. There are also those who'll show it on a WAP page. Main thing is, that there is no uniform way that'd work with all operators.

[Nokia S60] Re: My programs are "File Corrupted" in smart phone

Did you compile for the target device, and not the emulator?

[Internet] Checking user account balance

Hello everybody,

I am working on application that make an internet connection and there is no problem with this Smiling
But i need to check the user account balance before make any connection ,, so that i can handle a message to tell the user that he should recharge his account..

I searched all wiki articles but i didnt find anything regarding this issue ,, and i dont know if it is possible to the check the user account through Symbian C++ API's Puzzled

Thanks in advance.

Leonard

[Nokia S60] how to call EnableVisibilityChangedEvents ?

I call EnableVisibilityChangedEvents in my CAknAppUi by this:

CEikonEnv::Static()->RootWin().EnableVisibilityChangeEvents();

but it always crashes.

It this the correct way?

I am doing this because I want to being notified of any screen visibility change.

Note all other Enable* function calls work fine. (e.g. EnableFocusChangeEvents())

Thanks

[Symbian C++] Re: saving text to file

The editor provides the text as a 16 bit descriptor, so you have to get the text to a TBuf, not TBuf8. Then you need to convert/copy the text to a 8 bit descriptor and write that to the file.

Also, check the CEikEdwin docs -- there are methods there to write the text to a stream (if you use those) directly from the edwin object.

[Bluetooth & Wifi] Re: Toshiba BT API

Toshiba Bluetooth Stack SDK information can be found on the following website:
http://aps2.toshiba-tro.de/bluetooth/?page=faq/sdk
Eye-wink

[Symbian C++] Re: How to make my application to run in background in series 60

Thank you for your reply Smiling
what i cant understand is how can i listen to phone events in the background .... Sad
i followed and read all the examples and many threads in forums and still couldnt figure it out.
my app is in priority normal and i want to listen to "EDialing" event. i wrote the code and it doesnt work.
security reasons ?
i use s60 3rs FP1 , Nokia N95 as physical platform

[Nokia S60] My programs are "File Corrupted" in smart phone

Puzzled I worked with SDK S60 & SDK S60 FP2, I have no problem on emulator but both makes files that do not install on my N73 or 3250. They are S60 9.1. Help me.. I really confused.
At beginning installation phone says: "File Corrupted"