这是转来的一篇文章,我自己在项目中也使用到了类似于根据类名创建类实例并调用相应函数的功能。具体代码我会在今后发布出来。 利用GetClass与RegisterClass可以实现根据字符串来实例化具体的子类,这对于某些需要动态配置程序的场合是很有用的。其他的应用如子窗体切换,算法替换等都能得到应用。 Read More
posted @ 2017-01-30 23:00 findumars Views(786) Comments(0) Diggs(0)
为什么要使用包? 答案很简单:因为包的功能强大。设计期包(design-time package)简化了自定义组件的发布和安装;而运行期包(run-time package)则更是给传统的程序设计注入了新鲜的力量。一旦把可重用的代码编译为运行期库中,你就可以在多个应用程序中共享它们。所有应用程序都可 Read More
posted @ 2017-01-30 22:58 findumars Views(2603) Comments(0) Diggs(0)
How To Compile Qt with Visual Studio FEBRUARY 1, 2011 This post is a step-by-step guide on how to compile Qt 4.x.x with MSVC 2010. Although we use Qt Read More
posted @ 2017-01-30 21:18 findumars Views(382) Comments(0) Diggs(0)
元类信息(相当于RTTI和反射),信号与连接,父子关系,调试信息,属性,事件,继承关系,窗口类型,线程属性,时间器,对象名称,国际化其中元类又提供了:classInfo,className,构造函数,多重祖先元类,method, property, Enumerator, Signal, Slot等 Read More
posted @ 2017-01-30 20:20 findumars Views(877) Comments(0) Diggs(0)
使用Indy 10中TIdHTTP的例子: uses IdHttp;...function HttpGet(const Url: string; var Html: string): Boolean;var HttpClient: TIdHTTP;begin Result := False; Htt Read More
posted @ 2017-01-30 19:05 findumars Views(669) Comments(0) Diggs(0)