1. Please use code-tags if you post such an amount of code, otherwise it's nearly unreadable and I will not look into it.
2. Do what you are told to and post the results.
3. Do never mix resource-files from diferent C:B versions or you will run in crash for sure.