<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/LocustWei" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/LocustWei" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 19 Jul 2006 20:23:00 GMT</lastBuildDate><title>LocustWei的专栏</title><description>大蝗虫的技术空间</description><link>http://blog.csdn.net/locustwei/</link><item><title>Java 使用SWT 创建COM对象。</title><link>http://blog.csdn.net/LocustWei/archive/2006/07/19/943517.aspx</link><wfw:comment>http://blog.csdn.net/locustwei/comments/943517.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/locustwei/comments/commentRss/943517.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=943517</trackback:ping><description>Java 使用SWT 创建COM对象。&lt;img src =&quot;http://blog.csdn.net/locustwei/aggbug/943517.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 20 Jul 2006 04:23:00 +0800</pubDate><author>大蝗虫</author><comments>http://blog.csdn.net/LocustWei/archive/2006/07/19/943517.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/LocustWei/archive/2006/07/19/943517.aspx</guid><dc:creator>大蝗虫</dc:creator></item><item><title>条SQL语句的迷惑。</title><link>http://blog.csdn.net/LocustWei/archive/2006/07/06/884306.aspx</link><wfw:comment>http://blog.csdn.net/locustwei/comments/884306.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/locustwei/comments/commentRss/884306.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=884306</trackback:ping><description>千万别相信MS$的所谓SQL优化。别以为只有索引的好坏才能影响SQL性能。&lt;img src =&quot;http://blog.csdn.net/locustwei/aggbug/884306.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 06 Jul 2006 19:29:00 +0800</pubDate><author>大蝗虫</author><comments>http://blog.csdn.net/LocustWei/archive/2006/07/06/884306.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/LocustWei/archive/2006/07/06/884306.aspx</guid><dc:creator>大蝗虫</dc:creator></item><item><title>数据仓库定义的理解。</title><link>http://blog.csdn.net/LocustWei/archive/2006/06/30/856380.aspx</link><wfw:comment>http://blog.csdn.net/locustwei/comments/856380.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/locustwei/comments/commentRss/856380.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=856380</trackback:ping><description>数据仓库一个比较公认的定义，是W.H.Inmon给出的：“数据仓库（Data Warehouse）是一个面向主题的（Subject Oriented）、集成的（Integrate）、相对稳定的（Non-Volatile）、反映历史变化（Time Variant）的数据集合，用于支持管理决策 ”。&lt;img src =&quot;http://blog.csdn.net/locustwei/aggbug/856380.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sat, 01 Jul 2006 00:12:00 +0800</pubDate><author>大蝗虫</author><comments>http://blog.csdn.net/LocustWei/archive/2006/06/30/856380.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/LocustWei/archive/2006/06/30/856380.aspx</guid><dc:creator>大蝗虫</dc:creator></item><item><title>Delphi 创建建具有“反射调用”功能的类</title><link>http://blog.csdn.net/LocustWei/archive/2006/06/30/855784.aspx</link><wfw:comment>http://blog.csdn.net/locustwei/comments/855784.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/locustwei/comments/commentRss/855784.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=855784</trackback:ping><description>有的时候你会希望自己定义的一个Class在运行期能增加一个property、function，或者一个方法能完全改变他的行为，又或者你希望通过方法名来调用方法（类似JAVA）。

这样的效果可以利用AutoObject的后绑定特性来实现。

第一步、模拟实现一个AutoObject。

其实关键部分是要实现IDispatch的GetIDsOfNames（通过函数（属性）名称获取函数ID），和Invoke（调用指定DispID的方法）。完成之后，TRefClass便有了后帮定特性。可以赋值给Variant变量。

第二步、用一个List 保存增加的属性名称、方法名称、方法指针。以便GetIDsOfNames能找到指定的方法。

第三步、对已知方法调用、属性赋值处理比较简单。对动态增加的方法，由于参数未知，和参数的传递方式不同，处理起来相对困难（下面的例子支持简单参数类型Stdcall。

&lt;img src =&quot;http://blog.csdn.net/locustwei/aggbug/855784.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 30 Jun 2006 21:08:00 +0800</pubDate><author>大蝗虫</author><comments>http://blog.csdn.net/LocustWei/archive/2006/06/30/855784.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/LocustWei/archive/2006/06/30/855784.aspx</guid><dc:creator>大蝗虫</dc:creator></item></channel></rss>