简体   繁体   English

如何向ATL项目添加模板类?

[英]How can I add a template class to ATL project?

I am a beginner of COM (component object model) technology. 我是COM(组件对象模型)技术的初学者。 Now I'm using ATL to build a com project in VS2013. 现在,我正在使用ATL在VS2013中构建一个com项目。 I want to add a template class into the project using ATL wizard. 我想使用ATL向导将模板类添加到项目中。 But I don't know how. 但是我不知道如何。 I did some search and find nothing about my question. 我进行了一些搜索,未发现有关我的问题的信息。

I am wondering if ATL support template class. 我想知道ATL是否支持模板类。 If yes, could any one tell me how to add it? 如果是,请问有人可以添加吗?

Any help would be appreciated. 任何帮助,将不胜感激。

I am wondering if ATL support template class. 我想知道ATL是否支持模板类。 If yes, could any one tell me how to add it? 如果是,请问有人可以添加吗?

Yes, ATL supports template parameters (it's actually in the name Active Template Library ) and you can build your own templated classes around these templates to aggregate things using meta programming techniques. 是的,ATL支持模板参数(实际上是在名称Active Template Library中 ),您可以围绕这些模板构建自己的模板化类,以使用元编程技术来聚合事物。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM