Rainer Deyke: >This will not compile on a conforming C++ compiler. More historically, about 5 years ago C++ switched from having for(int i=0; ...) { } put the 'i' in the scope outside the 'for' loop to only being valid inside the for loop. Andrew