VBA and Visual Basic 6.0 on AutoCAD2014

VBA and Visual Basic 6.0 on AutoCAD2014

Anonymous
Not applicable
1,580 Views
1 Reply
Message 1 of 2

VBA and Visual Basic 6.0 on AutoCAD2014

Anonymous
Not applicable

Hi,

 

I have an application developed in VBA with a DLL library (developed in Visual Basic 6.0) as  a reference in my VBA project . My applicaction works properly on AutoCAD 2012 64bits, but over AutoCAD 2014 it doesn't work. 

 

See below some errors shown:

 

- You cannot load an object because it is not available on this computer.

- ActiveX component cannot create object.

 

But the project references are loaded correctatly. (as you can see in the image below).

 

Regards,

Jaime

0 Likes
1,581 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

Prior to Acad2014, regardless AutoCAD itself being 32 or 64-bit, its VBA is always 32-bit. Since Acad2014, its VBA is 64-bit, if AutoCAD itself is 64-bit.

 

Because your VB6 DLL is 32 bit, it cannot be used with 64-bit VBA coming with your Acad2014, even it is available in the "References" dialog box (other 32-bit COM libraries also listed there).

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes