请参考这篇:
http://community.csdn.net/Expert/TopicView.asp?id=4792616