But, sense nVarry was declared inside of a function, a different function cannot read nVarry. So my question is, how can I make a varible (in this case 'nVarry') become a global varible so that it can be read through out the whole app, and not just inside of the brackets that it was created in?Code:void make(hwnd HWND) { int nVarry = 90; } void read(hwnd HWND) { if(nVarry == 90) Beep(2000,100); }
Thanks in advance, August.