Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
THE FOLLOWING CODE-
C++
#ifdef MATHFUNCSDLL_EXPORTS
#define MATHFUNCSDLL_API __declspec(dllexport)
#else
#define MATHFUNCSDLL_API __declspec(dllimport)
#endif

I think in the above code both import & export does the same work.Can Someone point the difference for me?
Posted
Updated 30-Jul-15 18:41pm
v2

1 solution

Have you tried searching the same in google prior to put your effort to post the question here ?
Have you checked the documentation?
Isn't it easier to search in google than post a question here and wait for replies?

Ok. Check following links-
What is the difference between dllexport and dllimport?[^]
dllexport, dllimport[^]
Using dllimport and dllexport in C++ Classes[^]
Using __declspec(dllimport) and __declspec(dllexport)[^]

Hope, it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900