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

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
marcebilAuthor Commented:
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)
Robberbaron (robr)Commented:
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)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

marcebilAuthor Commented:
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 You think it is possible?

Thanks again!
Robberbaron (robr)Commented:
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.

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 !
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.