modified on qnn,vs2008.