使用C++模拟C#中的“反射”的动态创建功能,实现对象的动态加载.在自定义类中使用DECLARE_REFLECTION声明反射;使用IMPLEMENT_REFLECTION实现反射。 程序运行过程可以使用Assembly::CreateInstance动态创建对象(可以取代工厂模式),使用Assembly::First以及Assembly::Next实现对类集合的遍历。 程序在Visual C++ 6.0下测试通过。
在页面上动态创建columnchart 图表!其中也有数据的一些处理,是我这里项目中需要的。不过至少对于我这个动态创建机制还是需要的。 Dynamically created on the page columnchart Chart! Some of which also have data processing, here is my project needs. But at least for me to create this dynamic mechanism is still n