摘要:
前言: ATL/WTL中 程序设计中用模板类来附加新属性和实现接口。为了不破坏宿主类对外的封装性,需要定义友元类来解决这个问题。#include "stdafx.h"templateclass TemplateDemo1{public: TemplateDemo1(){}public:void Do(){T* pThis = static_cast(this);pThis->iUncoun... 阅读全文
posted @ 2011-07-25 11:20
MokLiu
阅读(301)
评论(0)
推荐(0)

浙公网安备 33010602011771号