When I build my program, error 318 occurs which stated ' can't open file 'reg52.h' where indeed this file is already provided.
Are you using the correct format for #include:
#include <file-in-INC-folder>
#include "file-in-current-folder"