uchar* and global variable RRS feed

  • Question

  • is that possible to make uchar* global variable and share the value throughout the entire class?  my uchar* gets reference one method, but the value is not shared with other methods.

    Thank you,

    Tuesday, June 25, 2013 4:40 PM

All replies

  • This seems to be a general programming question for some specific language.

    This forum is about using Platform Builder to create a Windows Compact (or CE) OS.

    But something like this should work very well:

    class MyClass


        uchar *MyVar = null;

        uchar *GetMyVar() {return MyVar};

        uchar *SetMyVar( uchar *var) { MyVar = var };


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG

    Eurotech Inc.

    Tuesday, June 25, 2013 5:31 PM
  • Thank you very much for your help!
    Wednesday, June 26, 2013 12:54 PM