Quote Originally Posted by LarryChen View Post
I tried to explain that if I use dllexport only without using a macro to switch between dllexport and dllimport, my app still works.
You tried. But nobody still understands what "I use", "switch between dllexport and dllimport", "app works" really mean. Without seeing how you "use", "switch" and test "app working" nobody would help you with your question.

I believe, cilu has fully answered your question, and now the question is whether you comprehend the answer.