跪求高手大侠指点,我用vba在我公司一款软件商写代码,需要调用dll封装起来但是开放方法和对象的动态链接,我从引用中勾选了相关选项,在写代码将定义的对象实例化时也都有智能提示,但是运行时候报错说自动化automation错误
代码如下:
Public lest As New ACAMNESTLib.Nesting
Public Sub test()
Dim nest As Nestlist
Set nest = lest.NewNestList("mynest")
End Sub请高手指点下,感激不尽,谢谢!
代码如下:
Public lest As New ACAMNESTLib.Nesting
Public Sub test()
Dim nest As Nestlist
Set nest = lest.NewNestList("mynest")
End Sub请高手指点下,感激不尽,谢谢!
解决方案 »
- 多媒体式排队叫号系统
- vb连接vfp数据库(dbc)问题
- 关于生成CSV文件速度过慢的问题
- 窗体能加上滚动条吗?想在一个界面是录入很多东西。就象在网页中输入那样?
- 。。。。。急。。。在线。例如,在填写物料申请单时,我要在Datagrid中,物料名称这格,如何加一个小按钮在这小格内,当点击小按钮时,跳
- 菜鸟问题:不知道这种显示方法大家都用什么方法来做?
- 急:请问怎样实现像Word的查找窗口那样的效果(一直在程序的最上层)?
- rar解压在VBS中如何执行
- ██████求求你了,进来吧!████████
- 用data控件连接excel,查询时出现错误
- vb中调用SQL过程,数据库连接问题
- 合并单元格的问题
Public Sub test()
Dim nest As Nestlist
set lest=new ACAMNESTLib.Nesting
Set nest = lest.NewNestList("mynest")
End Sub
InterfacesIn AlphaV7, properties were added to the Drawing object to get the interface for the Parametric, Solid and STL add-ins, as a safer alternative to using New or CreateObject or CoCreateInstance. In AlphaV7.5 these properties must be used, the old ways will not work. This ensures that the correct version of the add-in is used, rather than the most recently-registered one. Nesting Macros and Extensions For the same reason as in the above paragraph, AcamNest.dll has a new type library and new methods in the Nesting object: methodCreateEventHandler Use n.CreateEventHandler instead of New ACAMNESTLib.NestEvents Dim WithEvents OrderEvent As ACAMNESTLib.NestEventsPublic Sub Init(n As Nesting)'Set OrderEvent = New ACAMNESTLib.NestEvents Set OrderEvent = n.CreateEventHandler n.RegisterEventHandler OrderEvent methodCreateExtensionHandlerUse n.CreateExtensionHandler instead of New ACAMNESTLib.NestingExtension Dim WithEvents OrderExt As ACAMNESTLib.NestingExtensionPublic Sub Init(n As Nesting, name As String)'Set OrderExt = New ACAMNESTLib.NestingExtension Set OrderExt = n.CreateExtensionHandler n.RegisterExtensionHandler OrderExt
烦请高手指点