×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    hello i'm newbie in symbian,i was develop a simple applocation call quick mark and send a result to sms use carbide c++

    i got many problem when i was develop use api sdk quickmark

    this my code :

    void CTestQuickMarkContainerView::StartQuickMark()
    {
    const TInt KQuickmarkUid = 0x20004FFE;
    TUid id(TUid::Uid(KQuickmarkUid));
    TUid msgapid(TUid::Uid( 0xE90FB761)); //Client msgapi Uid

    TApaTaskList taskList(CEikonEnv::Static()->WsSession());
    TApaTask task = taskList.FindApp(id);

    if (task.Exists())
    {
    // Send a Uid to QuickMark that will callback.
    //above S60 3rd Edition: require SwEvent capability.
    _LIT8(params,"");
    task.SendMessage(msgapid, params);
    task.BringToForeground();

    }
    else
    {
    HBufC* param = HBufC::NewLC(256);
    param->Des().AppendNum(msgapid.iUid);
    RApaLsSession appArcSession;
    // connect to AppArc server
    User::LeaveIfError(appArcSession.Connect());
    TThreadId idt;
    appArcSession.StartDocument(*param, TUid::Uid(KQuickmarkUid), idt);
    appArcSession.Close();
    CleanupStack::PopAndDestroy(); // param
    }
    }

    when i was scan this code with code scanner use carbide then i got this error message :

    high: canpanic: leaving function called in non-leaving function

    in this line :

    HBufC* param = HBufC::NewLC(256);

    and

    User::LeaveIfError(appArcSession.Connect());

    can anyone give me solution and sample code to solve my problem


    the second problem is :


    when i was ignore this error message and start to make sis and sisx file with carbide c++ use build all configurations and when i try to install at my handphone (nokia e51),i got error message "unable install" when install is working (on progressbar suddenly stop and exit and show this message)

    this my pkg file :

    ; TestQuickMark.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"TestQuickMark"},(0xE353E4A8),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\TestQuickMark.r01" -"!:\resource\apps\TestQuickMark.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\TestQuickMark_reg.r01" -"!:\private\10003a3f\import\apps\TestQuickMark_reg.r01"
    "$(EPOCROOT)epoc32\data\z\resource\apps\TestQuickMark_aif.mif" -"!:\resource\apps\TestQuickMark_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\TestQuickMark.mbm" -"!:\resource\apps\TestQuickMark.mbm"
    ; Add any installation notes if applicable
    ;"TestQuickMark.txt" -"!:\private\0xE353E4A8\TestQuickMark.txt"


    one more again,i want to ask how to create a rsc file


    can anyone help me to explain and give all solution about all my problem
    thx before for all your answer and God bless you

    note :

    sory my english is not good and better :P
    thx for ur answer

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    The Code Scanner tries to warn you about that according to the Symbian naming conventions, StartQuickMark should not leave, while HBufC::NewLC and User::LeaveIfError are methods which can cause a leave. Rename your method to StartQuickMarkL in order to conform with the conventions.

    The "Unable to install" message probably arises because E-Series devices do not accept self-signed installation files with the factory settings. Visit the Application Manager, and toggle Installation from "Signed only" to "All".

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Quote Originally Posted by wizard_hu_ View Post
    The Code Scanner tries to warn you about that according to the Symbian naming conventions, StartQuickMark should not leave, while HBufC::NewLC and User::LeaveIfError are methods which can cause a leave. Rename your method to StartQuickMarkL in order to conform with the conventions.

    The "Unable to install" message probably arises because E-Series devices do not accept self-signed installation files with the factory settings. Visit the Application Manager, and toggle Installation from "Signed only" to "All".
    nice....thx for your first answer

    but for the second answer that i mean that when installation process is running (show progressbar) and suddenly appear message "Unable to install" and process is aborted

    i have sign cert both via carbide and via command prompt

    i use build all configuration and automaticly appear sisx and sis file
    (i don't know both this files has had been cert)
    but for make sure i recreate use command prompt use command :

    createsis create <url pkg>

    but when i finished and start to install
    i got error message like this when process is running (show progressbar)
    can you help me to solve my problem and answer my third question?
    thx before

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Hmm, apparently you have edited the .pkg file in a wrong way:
    C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    does not seem to be a generated line, especially since all others use $(EPOCROOT)
    The emulator uses Windows binaries, thus TestQuickmark.exe in epoc32\release\winscw\udeb is a Windows executable (you can even start it from a command prompt or the Explorer).
    For the device I would suggest epoc32\gcce\urel\TestQuickmark.exe. You have to build for the GCCE target in order to get the .exe created there. If you encounter problems when building for GCCE, make sure that you have installed the GCCE toolchain (you can find it in the SDK's program group in the Start Menu: "CSL Toolchain (GCCE) - Install" in Tools).

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Quote Originally Posted by wizard_hu_ View Post
    Hmm, apparently you have edited the .pkg file in a wrong way:does not seem to be a generated line, especially since all others use $(EPOCROOT)
    The emulator uses Windows binaries, thus TestQuickmark.exe in epoc32\release\winscw\udeb is a Windows executable (you can even start it from a command prompt or the Explorer).
    For the device I would suggest epoc32\gcce\urel\TestQuickmark.exe. You have to build for the GCCE target in order to get the .exe created there. If you encounter problems when building for GCCE, make sure that you have installed the GCCE toolchain (you can find it in the SDK's program group in the Start Menu: "CSL Toolchain (GCCE) - Install" in Tools).
    hello thx for ur explain
    but sory i still no understand what u say
    please can u give me more detail about your explaination to me
    hehe sory cos i still newbie

    give me sample script for pkg file
    what should i do to solve this problem

    thx for your help
    and God bless you

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Your PC and your telephone has different CPU-s. C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe is meant for the emulator, it is a program which runs on your PC, you can simply try it: press Windows+R (so get the Run dialog, and copy that command to it - your program will start.
    So if ....winscw\udeb\TestQuickmark.exe runs on your PC, it definitely will not run on your telephone.
    Either revert to the original variant,
    Code:
    "$(EPOCROOT)Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    or use GCCE expliticly:
    Code:
    "C:\Symbian\9.1\S60_3rd\Epoc32\release\gcce\urel\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    and in both cases you will have to build your application for the GCCE target (check Project/Build configurations in Carbide).

  7. #7
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Quote Originally Posted by wizard_hu_ View Post
    Your PC and your telephone has different CPU-s. C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe is meant for the emulator, it is a program which runs on your PC, you can simply try it: press Windows+R (so get the Run dialog, and copy that command to it - your program will start.
    So if ....winscw\udeb\TestQuickmark.exe runs on your PC, it definitely will not run on your telephone.
    Either revert to the original variant,
    Code:
    "$(EPOCROOT)Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    or use GCCE expliticly:
    Code:
    "C:\Symbian\9.1\S60_3rd\Epoc32\release\gcce\urel\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    and in both cases you will have to build your application for the GCCE target (check Project/Build configurations in Carbide).
    nice thx for ur answer

    but when i installed to my Handphone i not see my application in application folder at my handphone

    can u give me explain why is happen?

    one more again can ur give me example how to create cert so that my application can be trusted to my handphone

    thx a lot for your best answer

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    For trusted signing look around on http://www.symbiansigned.com - however note that only the Open-Signed Online variant is free. Anyway, there is nothing wrong with self-signing while you are just experimenting.
    The missing icon is strange - deployment of that ..._reg.r01 file should result in having an icon. You can try what happens if you switch your device to English setting.

  9. #9
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    sory one problem again
    when i installed to my handphone
    when instalation process is running,suddenly i got message "unabe to install"

    can u check my project,what's wrong

    thx for ur help

    here link my project

    http://rapidshare.com/files/25710343...kMark.rar.html

  10. #10
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    You are probably missing capabilities needed to perform the application functions (now your TestQuickMark.exe don't have any capabilities at all). If you run your application on the SDK emulator you should see Platsec warnings for missing capabilities ( http://wiki.forum.nokia.com/index.php/Epocwind.out ), also you could check SDK documentations.

    Also check this - How to Add/Assign Capabilities to your Program.

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Why would it work? TestQuickMark.pkg still refers to winscw\udeb

  12. #12
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Yes, exactly. It is necessary to be more attentive.

  13. #13
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    sory i confused
    can anyone explain me more detail cos i still beginner

    thx for ur explain

  14. #14
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Open your TestQuickMark.pkg file and replace
    Code:
    "C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    with
    Code:
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    Also check that you have all capabilities needed to perform the application functions (see post #10).

    After that right click on project folder > Build Configurations > Set Active > Phone release (GCCE). And try to build project again.

  15. #15
    Registered User
    Join Date
    Jan 2009
    Posts
    16

    Re: (Urgent!!!!!) Need help about quick mark sdk with carbide c++

    Quote Originally Posted by A.A.M. View Post
    Open your TestQuickMark.pkg file and replace
    Code:
    "C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    with
    Code:
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\TestQuickmark.exe" -"!:\sys\bin\TestQuickMark.exe"
    Also check that you have all capabilities needed to perform the application functions (see post #10).

    After that right click on project folder > Build Configurations > Set Active > Phone release (GCCE). And try to build project again.
    i have try ur answer but i got error "I/O Found"
    what's it?
    Last edited by eliezery1807; 2009-07-20 at 15:11.

Similar Threads

  1. SDK problem (Carbide C++)
    By patrickfrei in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 12
    Last Post: 2009-06-21, 16:22
  2. Carbide 3.0.1 and SDK 1st edition 1.2
    By The_Judgement in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-12-31, 17:17
  3. Perl and SDK for Carbide
    By hkordestani in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2008-09-15, 08:37
  4. Building sdk 9.1examples in Carbide Vs
    By mateen_maldar in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-07-06, 13:59
  5. URGENT!!: SDK for Nokia card phone 2.0 (Nokia PC Connectivity SDK 1.0 )
    By jagadeesan in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-04-06, 16:57

Posting Permissions

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