I have a third party visual studio project that seems like it produces DLLs. It has a header and cpp file that do dll export.
I want to include this project within my own solution containing my own projects.
But when I do, and when I try to compile my visual studio solutin, I get:
error C2491: 'funcA' : definition of dllimport function not allowed, pointing to this third party .cpp file
#define A_DLL __declspec(dllexport)
#define A_DLL __declspec(dllimport)
How do i fix this error? To me it suggests that somehow the DLL, called a32.dll which exists in the A/lib folder is not being seen. But I have mentioned the A/lib folder in the Additional include directories under Project->Properties->C/C++->General->Additional Include Directories.
how does one normally import in from the dll anyway? What needs to be done? I am using visual studio 2008