×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    50

    Unhappy problem in CGraphicsContext::DrawText

    hi all..

    I am using DrawText() method of CGraphicsContext to display some text. the code is:
    Code:
    CWindowGc& gc=SystemGc();
          gc.SetPenColor(KRgbBlack);
          TPoint pos(50,50);
         _LIT(KExampleText,"blacktext");
          gc.DrawText(KExampleText,pos);
    there are no errors in the application but the emulator terminates as soon as the application is loaded.

    Any kind of help is awaited...
    Thanks in advance..

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

    Re: problem in CGraphicsContext::DrawText

    You should enable the panic codes: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    If you start the emulator (instead of starting the app directly) http://wiki.forum.nokia.com/index.ph...arbide.c%2B%2B it will not exit when your application dies.
    Otherwise the immediate cause is that SystemGc has no font by default. Get iEikonEnv->TitleFont() for example, and set it with gc.UseFont().

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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