modify ResourceDef.h and TargetClass