Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User eliezery1807's Avatar
    Join Date
    Jan 2009
    Posts
    16
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Try not multiposting (http://discussion.forum.nokia.com/fo...d.php?t=174036), sometimes the net is just not as fast as you would expect.

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. How to get a WINSCW SDK compatible with Carbide?
    By cassioli in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-11-21, 18:26
  3. Symbian SDK vervions supported by Carbide
    By er_benji in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-07-17, 08:29
  4. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06
  5. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43

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