我用ATL写了一个简单的COM
在VB里面用的时候提示如下:
Run-time error '91'
Object variable or with block variable not set是什么东西错了??请各位高手指点指点!!
在VB里面用的时候提示如下:
Run-time error '91'
Object variable or with block variable not set是什么东西错了??请各位高手指点指点!!
调试欢乐多
Set obj = CreateObject("xxx.xxx.x");
obj.Method()
Set Obj = Nothing
---------------
前提是你实现了IDispatch接口
然后添加引用就行了,就像你是用ActiveX控件一样
----------------
Dim obj As Object
Set obj = CreateObject("xxx.xxx.");
obj.Method()
Set Obj = Nothing