I'm trying to set up and use a DLL and read few tutorials on how to do it.
I'd like to know however, why the intellisense is giving me the -cannot open source file "Header.h"- error.
The strange thing is that if I were to include the stdafx.h BEFORE the said Header.h the error subsides, here's the header's code :
#ifndef INDLL_H
#define INDLL_H
#ifdef EXPORTING_DLL
extern __declspec(dllexport) int Triplica(int);
#else
extern __declspec(dllimport) int Triplica(int);
#endif
#endif
.cpp file is empty, except for the include statement where I see the intellisense error.
Again, the warning goes away if I'm going to include stdafx.h before said header
What's the magic behind this ?
I do understand the reason for precompiled headers, but i still can't wrap in my head why it has to be on top of my .cpp file, I never had to do this with other win32 projects