CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Posts
    121

    Global Variables?

    I would like to create a global variables from the type of:

    public: static System::Collections::ArrayList* ArInvoices = new ArrayList();

    to access from all of my class and Forms.

  2. #2
    Join Date
    Sep 2004
    Posts
    121

    Re: Global Variables?

    I don't want to declear it in each class / form

  3. #3
    Join Date
    Nov 2003
    Location
    Seattle, WA
    Posts
    265

    Re: Global Variables?

    Do what I do create a singleton class called let say CGlobals and stick all your globals in that. Then just include the globals class header file in each form u want access to that global.
    "Lose it? It means go crazy...nuts...insane...bonzo...no longer in possession of one's faculties...3 fries short of a happy meal...WACKO!!!"

  4. #4
    Join Date
    Sep 2004
    Posts
    121

    Re: Global Variables?

    how about some code please?

  5. #5
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: Global Variables?


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured