"ActiveX component can't create object"
I'm using AutoCAD with the software I'm writing in VB 6.0, and I need to use late binding because I don't know what version of Autocad will be on the user's computer. (When us reference the Autocad type library, you have to specify version). The trouble is I get the error "ActiveX component can't create object" Error #429 when I try to run the software on another computer with the same version of Autocad (2004) using late binding. The strange thing is, it works fine on this computer... I need this software to work problem-free when it is installed on another computer with Autocad.
Thanks, any help is welcome
Re: "ActiveX component can't create object"
How do yu creating your object at run time? Can you show us your code please?
Re: "ActiveX component can't create object"
This is the object creation, it can't get pas the CreateObject line
Code:
Dim A2K4 As Object 'AcadApplication
Dim A2K4dwg As Object 'AcadDocument
Set A2K4 = CreateObject("AutoCAD.Application")
Set A2K4dwg = A2K4.Application.Documents.Add
Re: "ActiveX component can't create object"
Ok, I just checked, and the autocad on that computer hasn't been authorized, thanks for the help Rhinobull, but I think that was the only problem.
Re: "ActiveX component can't create object"
That explains, however you will need some error handler so you can prompt user that there is an issue with the software you're trying to automate.
Re: "ActiveX component can't create object"
Yep, I have that in place in my actual code, thanks
Re: "ActiveX component can't create object"