×

Discussion Board

Search:

Type: Posts; User: anttij; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    8,223

    Re: sorting in CArrayVar

    Change char c to TBuf<1> c. You should use descriptors. Furthermore, char is 8bits, as descriptors by default are 16 bit, so if you really want to use 8bit chars (binary data), use TBuf8 instead of...
  2. Replies
    3
    Views
    4,876

    Re: CImageDecoder issue

    No, just do what Sorcery-ltd suggested, put the * in front of data when you call DataNewL.
  3. Replies
    6
    Views
    7,850

    Re: loading and displaying image in game

    Also in Draw, you should not do anything that might leave (there is no DrawL). You should prepare everything to be drawn outside Draw(), then call DrawNow or DrawDeferred, which results to Draw()...
  4. Replies
    10
    Views
    10,733

    Re: Help me in Active object in S60 2nd edition FP3

    Is CLocStringCBS really inherited from CActive? And if so, shouldn't you be using the CActive's iStatus in the asynch request handling?
  5. Replies
    4
    Views
    7,284

    Re: use of global variables???????

    See CCoeStatic.
  6. Thread: handling panics

    by anttij
    Replies
    5
    Views
    5,636

    Re: handling panics

    You cannot TRAP(D) panics, only leaves (exceptions). Panic indicates a serious bug and will terminate your application. So to manage this, fix the bug.
  7. Replies
    32
    Views
    21,710

    Re: Read from a file

    Better to use NameAndExt() to get the extension too.
  8. Replies
    6
    Views
    8,117

    Re: How to inatialize CDesC16Array ?

    iMyArray = new (ELeave) CDesC16ArraySeg(8);
    iMyArray = new (ELeave) CDesC16ArrayFlat(8);


    First one creates a segmented descriptor array with granulanity of 8. This means that each segment of...
  9. Replies
    14
    Views
    8,250

    Re: reason HBufC failed to ReAlloc

    Not sure what is the actual problem, but this code is wrong. As the docs say, ReAllocL returns a pointer to the new allocated HBufC. You should use that pointer after ReAllocL, not the original:
    ...
  10. Replies
    16
    Views
    21,948

    Re: RPointerArray:: ResetAndDestroy()

    You create an array of arrays which contain chars, but then add EFalse (=zero address) to the array??
  11. Replies
    8
    Views
    7,564

    Re: Cargo cult programming?

    Hi,

    I often use Composite, though implemented differently from the usual text book examples. Ofter you'd need multiple inheritance in implementing Composite. To avoid it on Symbian OS (since it is...
  12. Replies
    7
    Views
    6,011

    Re: Wierd problem of RArray

    The size of your class is (3*255)*2+4 bytes, so it is way too much big for RArray. It has an internal limit of 640 bytes for the objects it can carry. So use some other dynamic array, or redesign...
  13. Replies
    9
    Views
    10,756

    Re: E32User-Cbase 46 error and Active Objects

    You have to call SetActive after RequestComplete. Otherwise the scheduler does not know which active object is active to handle the completion of the request. Scheduler goes through the list of AOs...
  14. Re: Confusing of class constructor's declaration and implementation

    They are not parent classes. This is the member initialization list. You can initialize member variables also in this place, not just in the body of the constructor implementation. It's even...
  15. Thread: Goodbye World

    by anttij
    Replies
    13
    Views
    5,528

    Re: Goodbye World

    Hi,

    How did the device compilation succeed?
    The contents of the pkg file?
  16. Re: How to initialize 'static CDesCArray* iArray' ?

    Static variables are initialized in the module scope (outside any code, in cpp file):

    CDesCArray * CMyClass::iArray = 0;

    But if you are implementing a dll or an app pre v9 (=polymorphic dll),...
  17. Replies
    3
    Views
    7,252

    Re: Global Declaration..How.?

    A slight correction to this. You are allowed to have const static data (including global data), but not non-const. This applies to dlls (and note that apps in pre-9 are also dlls).
  18. Re: Obex BT connect fails with PC, succeeds with another phone

    Ah, now it works. Had some wrong parameters for the BT OBEX connection.
  19. Obex BT connect fails with PC, succeeds with another phone

    Hi, I've got an app on N70 which sends files over BT OBEX to another BT device. I use device and service discovery and then user selects the device from a list.

    Now, when the device is selected,...
  20. Replies
    1
    Views
    4,254

    Re: To convert lit to int

    _LIT(KMyInt, "10");
    TInt myInt;

    TLex lexer(KMyInt);
    if (lexer.Val(myInt) == KErrNone)
    {
    // got an int
    }
  21. Replies
    11
    Views
    13,353

    Re: Peer To Peer On Symbian

    Complain also to AAS, Handango and My-Symbian webmasters. The software is on sale there too.

    http://www.stap-soft.com/contact.html
  22. Replies
    2
    Views
    5,886

    Re: Extract portion of hbuc8

    After


    iSocket.RecvFrom( iBufferPtr ,remoteAddress,0,iStatus);

    You should wait for the async request to end before trying to read the buffer. Now you do not wait but continue directly to...
  23. Re: Saving data but not in a single file, the Symbian way?

    How about the Symbian DBMS?
  24. Replies
    5
    Views
    5,312

    Re: RunL doesn't get called ...

    Also check that you use the iStatus inherited from CActive, not your own.
  25. Re: Very stanger crashes, wish some experts can help

    If your array contains poiters to M -type interface classes, also you should declare the destructor of the M -type as virtual. Otherwise the derived class' destructor will not be called while...
Results 1 to 25 of 61
Page 1 of 3 1 2 3