extern
// MyDialog.cpp int g_counter = 0; // variable definition (and initialization, here)
// MyOtherDialog.cpp extern int g_counter; //... g_counter = 5; // access global variable defined in MyDialog.cpp
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)