阅读背景:

C ++ DLL:不暴露整个类

来源:互联网 

How can I "hide" parts of a class so that whoever is using the libary does not have to include headers for all the types used in my class. Ie take the MainWindow class below, ho can I have it so when compiled in a static/dynamic libary, whoever is useing the libary does NOT have to include windows.h, ie HWND, CRITICAL_SECTION, LRESULT, etc do not have to be defined.How can I "hide" parts of a class so that whoev




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: