I am working on a MDI application generated by the Appwizard in Visual C++6.0.
The application has the usual document,view,dialog classes,etc. within it.
I want to declare a global counter variable that will be incremented each time a new or saved document is opened. The aim here is to be able to check how many documents are currently open as I want to place a limit on that number.
Does anyone have an idea on where "EXACTLY" I should declare and initialize my counter? I need a variable that can be accessed by my document class when a new document or saved document is opened in the application.
Thanks for the help
Tesita