Scope of variable ?
Posted on 2003-03-27
I am trying to port a C program with 4 functions (including) main() into an MFC app.
The 4 functions communicate between themselves using GLOBAL VARIABLES.
In the MFC app it looks like....
However many of the variable names are identical to ones already used in the MFC. How do I declare the variables such that they are visible (ie.identical to global) inside the OnRleEmbed() function and accessible to func1(), func2() and func3(), but not outside OnRleEmbed() so that they do not interfere with the rest of the MFC app.