This error ha nothing to do, with a DLL problem. Or with the way to share code in a DLL with another project.
You setup a project that uses precompiled headers. Precompiled headers are setup for each project seperatly. You should never share such a file between projects.
Setup your project that it compiles without the external DLL reference.
If it compiles add the header file of the external DLL interface (and nothing more), add the LIB file to the linker options (or use #pragma comment(lib,..)).
Again: Your main problem ist that you didn't understand precompiled headers, for a fast try you can turn it of at all. But I suppose that you way to share the project file is a "little bit chaotic".