Another option to consider, perhaps more "C++ish", would be a variation on the singleton pattern:
Some h file
struct Globals
{
static int& getMyIntGlobal()
{
static int...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Lindley Search: Search took 0.09 seconds.
Results 1 to 3 of 3
|
Click Here to Expand Forum to Full Width |