__declspec(notshared)
__declspec(notshared) 属性指明不导出动态符号的特定类。
struct __declspec(notshared) X { virtual int f(); }; // do not export this int X::f() { return 1; } struct Y : X { virtual int g(); }; // do export this int Y::g() { return 1; }