×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    208

    Smile console exe global variable?

    how to do a global variable in a console exe of 3rd?

    help!

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: console exe global variable?

    Read this in SDK.

    Symbian OS v9.4 » Symbian OS guide » Essential idioms » Static data
    Regards,
    Shafali

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: console exe global variable?

    Even if you create simple default console exe application, it will create code with global variable console. Use of global variable is not recommended symbian, so try to go with singleton class.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: console exe global variable?

    A lot of people misunderstand or misquote global data or don't realize the reasons behind the use of it and thus paint every situation with the same brush.

    Ask yourself, or find out, exactly what the reason is/was why global static data was not recommended, now ask yourself if that is applicable in this situation.
    Its ok to create a a global variable in the console exe. How to do it, just declare it a global level. Have you tried something and its not worked?
    Last edited by hotcheese; 2009-09-28 at 16:32.

Similar Threads

  1. GUI EXE and console EXE
    By danie78 in forum Symbian C++
    Replies: 2
    Last Post: 2009-03-13, 10:01
  2. Why console exe program can't be install?
    By ncljh in forum Symbian C++
    Replies: 9
    Last Post: 2008-03-19, 04:47
  3. Re-Installation Issue with console exe
    By neekasa in forum Symbian C++
    Replies: 3
    Last Post: 2007-12-27, 12:31
  4. Carbide Basic console app (EXE)
    By ravey72 in forum Symbian C++
    Replies: 6
    Last Post: 2007-12-10, 05:11
  5. Replies: 0
    Last Post: 2004-03-30, 00:13

Posting Permissions

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