'AChar':is not a class or namespace name

Have you tried a Clean solution and Rebuild? Sometimes this helps. Also if you recently rewrote everything, are you sure your source files are in the right place, ie not in the intermediate folder?