Loading... <p>打开“View ”——“typeLibrary”窗口,在Interface(红色图标)接口处添加一个method(方法)(图1)</p><p>如果有输入输出参数的话,直接在parameters处添加参数就可以。建议用variant,因为这是一个全类型。</p><p>可以直接转换为其它类型。(图2)无参数的话,直接点刷新,就会增加函数了。</p><p>添加代码就OK。外部直接调用如“samoolUploadImg.showAbout”即可。</p><br><a href="https://samool.com/attachment/39060/" target="_blank" title="ocx传递参数.jpg"><img src="/attachments/date_200703/eb29ad8c1e688bef11f6dcfbfd318a46.jpg" alt="ocx传递参数.jpg" /></a><br><br><a href="https://samool.com/attachment/39061/" target="_blank" title="代码.jpg"><img src="/attachments/date_200703/dab6f635b6ecf50a5386bb0768e7f4cf.jpg" alt="代码.jpg" /></a><br> 相关文章 无相关文章 Last modification:August 16th, 2009 at 12:30 pm © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments Pay by AliPay Pay by WeChat