Conecting with a vb6 dll from autocad 2014 on a Windows 7 64 bits OS

Posted on 2013-09-10
Medium Priority
Last Modified: 2013-10-10
I develope a DLL in Visual Basic 6.0 for Autocad. I need to get the interface in Lisp, as in:

(vla-GetInterfaceObject      (vlax-get-acad-object) project)

being proyect a class in the dll.

This works fine, (the connection and the dll), when using Windows 32 bits, but I can not connect to it using 64 bits (Windows and Autocad)

Any idea?
Question by:marcebil
LVL 37

Expert Comment

ID: 39483046
Did you build a 64 bit dll?
In Visual Basic 6, you can choose what architecture to build when you make the dll. Sometimes you can build a 32 bit and it will work for both, but sometimes you need to publish them separately.

Author Comment

ID: 39483447
I thought that it is nos possible to build a 64bit dll in Visual Basic 6.0,  but it is possible to build it in order to run in a 64 bit machine.
How i do that?

In fact i am running another VB6 exe file, build as this one, and works fine (as a window proyect)
LVL 33

Accepted Solution

Robberbaron (robr) earned 2000 total points
ID: 39489448
vb6 is 32bit only.

acad2014 has changed as well as VBA is 64bit as well for the first time.
So what used to work in 2013 needs rewrite for 2014. (Win API calls and the like.)

So I don't see any option other than convert the VB6 code to .Net. (with significant issues likely though you may get lucky with the upgrade assistant if your classes are clean already)
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.


Author Comment

ID: 39489825
Ok, that's what i was afraid to! Thanks

I tried once with the upgrade assistant and was impossible because (I think) the nature of the written code. I'll have to do it by myself.

Two more questions:

1. You say that it used to work in Map 2013.  I had it working in 2009 , not 2013.
So, you think i've a chance that i can use it in 2013 32bits? or you said it because you thought I said it used to work there?
Because if it is a chance thay works on Map2013,  it gives me much more time to convert the code (which I'll have to do it eventually, but in the meantime it will be a great solution for me!)  

2. One possible solution i am thinking (in Map 2014), is to create an interface in VB .net between Aucocad 14 and vb6, including the vb6 dll as a reference in vb.net. You think it is possible?

Thanks again!
LVL 33

Expert Comment

by:Robberbaron (robr)
ID: 39489944
The newer upgrade assistant (the one MS outsourced) does a better job but yes, i end up rewiting most of my VB6 apps into C#.  But at least the structure comes across. http://msdn.microsoft.com/en-us/vstudio/ms788231

1. all of my coding prior to a couple of months ago has been in Acad VBA6  (which is 32bit, even if Acad is 64bit).  Not used Map but Civil3D is similar i suspect.  Acad2014 moved to 64bit everything, incl VBA7, which appears to resolve a few reliability issues.

2. mmm; effectively create a .net dll that wraps the old vb6 one.... strange, but it may well work !
LVL 52

Expert Comment

by:Martin Liss
ID: 39561739
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A discussion about four distinct advantages of using a Custom Software Development solution.
AngularJS web development a very simple procedure. So, to put it, in short, AngularJS’ stand out features are – Two-way data binding, MVC structure, directives, templates, dependency injections and testing.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question