#ifdef DLG_WINDOW_API #define DLG_WINDOW_EXPORT __declspec(dllexport) #else #define DLG_WINDOW_EXPORT __declspec(dllimport) #endif class DLG_WINDOW_EXPORT CDlg extern "C" DLG_WINDOW_EXPORT CDlg* getInstance(); extern "C" DLG_WINDOW_EXPORT void destroyInstance(CDlg*);