October 2nd, 2012, 01:24 PM
A question regarding dllexport and dllimport
Usually we use the following statements to export a class or member functions,
I understand that the files using the exported class or function need to call this class or function with dllimport and the file containing the exported class or function needs to call this class or function with dllexport. But I tried to use __declspec(dllexport) only instead of the statements above. It still works. Is there anything I am missing?Why'd we have to switch between dllexport and dllimport? Thanks.
#define DLLIO __declspec(dllexport)
#define DLLIO __declspec(dllimport)
Click Here to Expand Forum to Full Width