DLLs

Hi there,

I am experimenting with exporting functions to a DLL and using this DLL in another project. To export, I am prefacing the function declarations using the keyword "__declspec(dllexport)" in the DLL project. However, I have found (accidently) that if I instead use "__declspec(dllimport)", the functions are still accessible in the project that uses the DLL (albeit with some compiler warnings). Can anyone explain why this is the case please? I am using Visual C++ Express 2010.

Thanks...
Topic archived. No new replies allowed.