When trying to add a .h header file along with its .cpp file to a MFC Wizard generated program I get this error when trying to compile "fatal error C1010: unexpected end of file while looking for precompiled header directive". The header file doesn't contain a class, just a function. I also get the same error when both files are blank and contain no code at all. So whats the trick here? what am I doing wrong? Please Help.