You shouldn't have to do anything special to use the LONG. There's no requirement to use int in a 'for' statement. You can actually put any valid code you want to in the three expressions (init/condition/loop). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: