关于AFX_EXT_CLASS宏,好心人帮忙看看
Extension DLLs use the macro AFX_EXT_CLASS to export classes; the executables that link to the extension DLL use the macro to import classes. With the AFX_EXT_CLASS macro, the same header file(s) used to build the extension DLL can be used with the executables that link to the DLL.
In the header file for your DLL, add the AFX_EXT_CLASS keyword to the declaration of your class as follows:
class AFX_EXT_CLASS CMyClass : public CDocument
{
// <body of class>
};
以上是MSDN给出的结释,小弟有些地方不明,请大侠指点。用这种宏定义的类中的方法只给出了函数声明,而具体函数体在什么地方。(在小弟拿到的项目源码中并无任何.dll文件)
问题点数:0、回复次数:0Top




