佚名通过本文主要向大家介绍了贝壳类海鲜名称大全,河鱼类大全名称图片,群名称大全同学类,群名称大全朋友类,群名称大全闺蜜类等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: class FastString;//导入实现类的名称??
描述:
解决方案1:
描述:
在《Essential COM》中有这样一个例子:
//faststringitf.h
class __declspec(dllexport) FastStringItf {
class FastString; //导入实现类的名称?????????
FastString *m_pThis; //(大小保持固定)
public:
FastStringItf(const char* psz);
~FastStringItf(void);'
int Length(void) const;
int Find(const char* psz) const;
};
请问“导入实现类的名称”是什么意思,没有这段代码会如何?
解决方案1:
我觉得和#include这个类的头文件差不多,没有这一行,会无法解析
FastString *m_pThis; //(大小保持固定)