Hi all ,
I need to call a form that is conpiled in a vb dll activeX from lisp in Autocad 2006 with this function:
(defun isq()
(vl-load-com)
(setq AcadObj nil)
(setq AcadObj (vlax-get-acad-object)
vbdll (vla-getinterfaceobject
AcadObj
"vbdll.ext"
)
)
(vlax-invoke vbdll "Show")
(vlax-release-object vbdll)
(vlax-release-object AcadObj)
(princ)
)
it works fine in Autocad 2005 while in Autocad 2006 it give me an error in line :
(vlax-invoke vbdll "Show")
"that cannot view form in this host application from a dll activeX or a property page".
Is there a 2006 bug ?
Any workaround.
Thanks in advance
Max