I have a question about global variables in C++. I use Visual C++.
I have three different CMultiDocTemplate templates with a view(CFormView), doc(CDocument) and frame for each.
When I press on a button a variable should be incremented by one step. This variable should then be accessed and edited from all of the other windows.
Where should I declare the variable to keep it global and up to date during the program's lifetime?
As you understand I am quite the beginner, so please try to explain the answer. :-)