toss uesless code and make it VC6 compitable