tfpt wrapper for vs2010 and latter