# modify the code so that it can be complie with vs2008