Also answered here
http://forums.devshed.com/c-programm...on-370871.html