Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Hello experts,

    When I write my first application how i can test it ? I know my code right but I need to integrate to GUI how I can call the function to from button and run the code ?

    any one can help on that ?

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,743
    If you generate a new GUI application with Carbide.c++, it is going to have a menu. You can simply replace/extend the handler code for menu commands in AppUi::HandleCommandL and invoke your own code.

  3. #3
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    Quote Originally Posted by wizard_hu_ View Post
    If you generate a new GUI application with Carbide.c++, it is going to have a menu. You can simply replace/extend the handler code for menu commands in AppUi::HandleCommandL and invoke your own code.
    Suppose I have my excample.cpp and example .h
    example.cpp contains the main function to be executed , so I have to go for AppUi::HandleCommandL and invoke the wanted functions ?

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,743
    Probably yes (note that I do not know what your code is going to do). #include "example.h", then you can invoke functions from it.

  5. #5
    Regular Contributor dr.nokia's Avatar
    Join Date
    Feb 2010
    Posts
    68
    I have question , when I generate the GUI s60 application in carbicde c++ , I get the following :
    ExampleAppUi.cpp
    ExampleApplication.cpp
    ExampleContaner.cpp
    ExampleDcoument.cpp
    ExampleContainerView.cpp

    What the corresponding each of them I got confused !!

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    ExampleApplication.cpp is your entry point, and application class file, application then makes document class that is in ExampleDcoument.cpp, which then makes the Appui class that is located in ExampleAppUi.cpp.

    Basically you don't need to care too much on application or document, Appui class could then be used for commands handling, though I suppose you are using view based, thus then you could do it in the view located in your ExampleContainerView.cpp.

    in your ExampleContainerView.cpp you would then handle the actual UI screens such the the one implemented in the ExampleContaner.cpp.

    You could always just put breakpoints into the code and see how it gets executed.

Similar Threads

  1. My very first Flash Lite Application for S60! :)
    By grogosaur in forum [Closed] Publishing to Nokia Store
    Replies: 5
    Last Post: 2009-05-23, 23:55
  2. Replies: 1
    Last Post: 2009-01-14, 13:42
  3. Replies: 12
    Last Post: 2008-08-06, 09:54
  4. How to make first application in s60 first edition?
    By kanchan sinha in forum Symbian C++
    Replies: 4
    Last Post: 2008-02-26, 13:56
  5. Req help: Help me to create my first program in s60 SDK
    By urs_frndin in forum General Development Questions
    Replies: 2
    Last Post: 2007-11-28, 12:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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