×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    116

    how to add custom header files and source files to an existing UI project

    hi,

    How can we add our own header files and source files to an existing UI project in such a way that it should not disturb the previous execution flow.

    I did not find any main class like in general c++ where we instantiate class objects and call each and every method declared in the class. How to do that, help me please.

  2. #2
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: how to add custom header files and source files to an existing UI project

    From your questions it seems you are new to Symbian/S60 programming. Get good understanding of S60/Symbian programming.
    In Symbian entry point is called as E32Main. Search for E32Main() in your code base. If you are working with Application program, you will find E32Main() in file which ends with 'Application'. e.g. MyApplication.cpp
    If you want to write background task which does not show interact with the user, you can think of using libc APIs. Search for 'OpenC' in forum nokia.
    -Datha
    Last edited by datha_k; 2009-03-03 at 21:51.

  3. #3
    Regular Contributor
    Join Date
    May 2003
    Location
    India
    Posts
    136

    Re: how to add custom header files and source files to an existing UI project

    are u talking about new view files. If yes then add into appui class.

  4. #4
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    116

    Re: how to add custom header files and source files to an existing UI project

    hi,

    suppose we are developing a big project, we divide it into various modules and we generate source files according to it. Likewise, in symbian if we add our own header/source files then how can they be mixed with the application's flow ?

  5. #5
    Regular Contributor
    Join Date
    May 2003
    Location
    India
    Posts
    136

    Re: how to add custom header files and source files to an existing UI project

    hi,
    Symbian follows folder structure like
    data, group, inc, sis and src.

    Keep all your header file in inc folder...
    Similar source files in src folder.

    Modified your porject mmp file..
    SOURCEPATH ..\src
    SOURCE XYZ.cpp
    SOURCE XYZApp.cpp
    SOURCE XYZAppui.cpp
    SOURCE XYZDocument.cpp
    ... new .cpp file here

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to add custom header files and source files to an existing UI project

    Go to inc folder of your project, rightclick there create one file called test.h, put your header related code there.
    same way go to src folder of your project, rightclick there create one file called test.cpp, put your source related code there.

    Now if u r using visual studio then goto solution explorer and rightclick on to inc folder->Add->AddExisting item. now select ur test.h from there and add it. similarly rightclick on to src folder->Add->AddExisting item. now select ur test.pp from there and add it.

    Add #include "test.h" header in a file where u use this header.

    Modified your porject mmp file..
    SOURCE Appui.cpp
    SOURCE test .cpp

Similar Threads

  1. How to add source file which is out of project root
    By zdenko in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2007-09-04, 09:34
  2. Adding existing source files to a Carbide project without copying them
    By IntelliJani in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2007-08-21, 13:19
  3. could not find thread.mbg and thread.rsg
    By deercrane in forum Symbian
    Replies: 3
    Last Post: 2006-04-18, 09:44
  4. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  5. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×