|
}
NS_DECL_CLASSINFO(nsMyCom)
static const nsModuleComponentInfo components[] ={
{ "nsMyCom Component", NS_MYCOM_CID, NS_MYCOM_CONTRACTID,nsMyComConstructor,
nsMyComRegistrationProc /* NULL if you dont need one */,
nsMyComUnregistrationProc /* NULL if you dont need one */,
NULL /* no factory destructor */,
NS_CI_INTERFACE_GETTER_NAME(nsMyCom),
NULL /* no language helper */,
&NS_CLASSINFO_NAME(nsMyCom)
}
};
NS_IMPL_NSGETMODULE(nsMyComModule, components)
5、制作Makefile,生成,安装组件
好了,我们可以编写Makefile文件,来编译我们刚才编写的组件了.
#filename:Makefile
(出处:清风网络学院)
上一篇:字符串NDS_trim.h
下一篇:PHP 面向对象程序设计资源
|