/********************************************\
|????歡迎轉載, 但請保留作者姓名和原文鏈接, 祝您進步并共勉!???? |
\********************************************/
讀VC++內幕之體悟 - 11
作者: Jerry Cat
時間: 2006/09/10
鏈接:http://www.shnenglu.com/jerysun0818/archive/2006/09/10/12225.html
通過在函數OnInitDialog中加入AfxOleLockControl(someActivexControl.GetClsid());可以把ActiveX控件鎖定在內存中,這樣,除非程序退出或者調用了AfxOleUnlockControl,ActiveX控件將總在內存中。
posted on 2006-09-10 20:20
Jerry Cat 閱讀(703)
評論(3) 編輯 收藏 引用