Global Variable or Not
From: Macca (asbc31_at_dial.pipex.com)
Date: 09/30/04
- Next message: Tony Thomas: "Re: ComboBox issue..."
- Previous message: Roland: "Re: Load resources from exe and dll"
- Next in thread: Sigurd Stenersen: "Re: Global Variable or Not"
- Reply: Sigurd Stenersen: "Re: Global Variable or Not"
- Reply: r norman: "Re: Global Variable or Not"
- Reply: River Ross: "Re: Global Variable or Not"
- Reply: Macca: "Re: Global Variable or Not"
- Reply: Joseph M. Newcomer: "Re: Global Variable or Not"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 15:11:32 +0100
Hi,
In my application i have one class,Class A, which as the app is being run
collects diagnostic information throughout the day and stores it in a
vector.
I have another class, Class B, that at the end of the day will take the
contents of this vector, that has been built up over the day, and produces
some excel reports from it.
The problem i am having is how Class B accesses the vector that Class A is
using.
There is no relationship between the 2 classes.
One way would be to declare the vector as a global variable that the two
classes can access.
Im not sure that this is the best way. Does anyone have anyother
suggesstions?
Thanks In Advance
Macca
- Next message: Tony Thomas: "Re: ComboBox issue..."
- Previous message: Roland: "Re: Load resources from exe and dll"
- Next in thread: Sigurd Stenersen: "Re: Global Variable or Not"
- Reply: Sigurd Stenersen: "Re: Global Variable or Not"
- Reply: r norman: "Re: Global Variable or Not"
- Reply: River Ross: "Re: Global Variable or Not"
- Reply: Macca: "Re: Global Variable or Not"
- Reply: Joseph M. Newcomer: "Re: Global Variable or Not"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|