No...it wont work in DOS because it uses the windows API.........but that will work in 32bit console apps (like those made by recent versions of VC++, Borland C++ VBuilder, Codewarrior, Devc++....)Originally posted by elad
Fordy's code will work in DOS or console mode.
If you are still using an old dos compiler then you shouldnt be even thinking of doing stuff like printing.....DOS is dead