0
votes

I am a beginner of COM (component object model) technology. Now I'm using ATL to build a com project in VS2013. I want to add a template class into the project using ATL wizard. But I don't know how. I did some search and find nothing about my question.

I am wondering if ATL support template class. If yes, could any one tell me how to add it?

Any help would be appreciated.

1
You do not seem to understand what you are talking about. Grab a good C++ book and start reading. - SergeyA
I understand c++. What I'm talking about is COM. - Danny
Nope, you don't. Otherwise you would understand that your question does not make any sense. - SergeyA
It would be helpful if you can tell me where it does not make any sense. - Danny
@Danny Do you want to add a class template or a templated class? ATL is all about template classes. - πάντα ῥεῖ

1 Answers

0
votes

I am wondering if ATL support template class. 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.