I have a VB 6 app. that creates an autocad drawing from dimensional data entered by the user. When the app gets to this line in the code "Set A2K = New AutoCAD.AcadApplication" I get the "ActiveX component cannot create object error." Error 429. The part that is odd is that if I run the application a second time the app runs fine with no errors. If I wait a little while and run the app again the error returns and then the second time it runs fine again. There must be something that is initialized the first time the Autocad dll tries to create a new acadapplication. Does anyone have an idea on how to make this work on the first try? Thanks in advance.
Have you tried? :
Dim A2K As AutoCAD.AcadApplication
Set A2K= CreateObject("AutoCAD.AcadApplication")
Or maybe until you find out what is wrong
On Error Resume Next
Set A2K = New AutoCAD.AcadApplication
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Here are a few simple, working, games that you can use as-is or as the basis for your own games.
This is one of the simplest of all games.
The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.
What are they?
An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…