To implement virtual functions, C++ uses a special form of late binding known as the virtual table. The virtual table is a lookup table of functions u Read More
posted @ 2018-09-06 20:10 findumars Views(481) Comments(0) Diggs(0) Edit
As it turned out this is a special kind of pointer. The this pointer stores the address of the class instance, to enable pointer access of the members Read More
posted @ 2018-09-06 20:09 findumars Views(310) Comments(0) Diggs(0) Edit
造个简单的轮子倒是不难,但可用性健壮性高到qt这样全世界都在用,就几乎不可能了比如自己写个事件循环实现信号槽,还真不难,我这边的架构里就这么搞了个仿osgi的事件总线嵌入式实时操作系统上能用的大型gui框架,这句话足够日天了,也就qt一家…… qt诞生比mfc还早,基本上是全期压制mfc的,只是亏在 Read More
posted @ 2018-09-06 17:52 findumars Views(864) Comments(0) Diggs(0) Edit