作者:HelloWorld
这个ActiveX控件本身比较简单,是我照《Atl编程指南》里的例子做的。但是里边调用ActiveX的方法,我觉得比较好。
一般都是用VC生成的那个该死的包装类来调用ActiveX!我一看它就烦,什么破东西,连字母大小写都不对,还用它的那么多代码文件来污染的我代码工程,太难以忍受了。
我的方法是,直接把控件import时来,然后用最普通的方式来使用控件。这个例子比较值得看一下。-Author: HelloWorld the ActiveX control itself is relatively simple, according to my
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001510s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.094473s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001127s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001419s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001195s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003427s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000989s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003881s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014506s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001295s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 167996 [ RunTime:0.017251s ]