Sorry i havn't found any error when i run the code which is give by you(i mean link).So you are useing vc2005 or 6.I test the code on 2005..