更新时间:2023-02-17 20:17:00
^ ]
用于VC ++ 6的.NET样式委托 [代表和活动 [
Generic Delegates (Visual C++)[^]
.NET style delegates for VC++ 6[^]
Delegates and Events[^]
解决方案1中的链接均适用于.NET环境.从问题的标签中可能很可能不是在使用.NET,而是纯C ++代码.
可以在CodeProject上找到一篇很好的文章,其中包含对代理人的顺利介绍:>
The links in Solution 1 are all geared towards the .NET environment. From the tags of your question it might well be that you are not using .NET, but plain C++ code.
A good article with a smooth introduction of delegates can be found here on CodeProject:
Member Function Pointers and the Fastest Possible C++ Delegates
Try this one, but be warned that this is an advanced subject.