Improced code gen form control activation ans enabling
Fixed refenced assembly #define names