RalphGM
asked on
visual basic 6 works on one machine not the other - both windows 7 64 bit
I have two Windows 7 64 bit computers running Visual Basic 6.
On computer 1, vb6 works fine - the reference is "Visual Basic for Applications" vba6.dll .
On computer 2, vb6 is not working properly but same reference "Visual Basic for Applications" is shown as msvbvm60.dll .
As a start on my debugging I need to have computer #2 referencing vba6.dll but can't remove the offending reference msvbvm60.dll -- I get a warning that it is in use.
I attach print screens ...
Any ideas would be helpful.
On computer 1, vb6 works fine - the reference is "Visual Basic for Applications" vba6.dll .
On computer 2, vb6 is not working properly but same reference "Visual Basic for Applications" is shown as msvbvm60.dll .
As a start on my debugging I need to have computer #2 referencing vba6.dll but can't remove the offending reference msvbvm60.dll -- I get a warning that it is in use.
I attach print screens ...
Any ideas would be helpful.
The Second one does not have Autocad 2007 type library it's ole automation. Did try scrolling down and adding library? And you are not sure that the first pc have installed vb 6 in 32 bit and second one in 64 bit. See your image and get the path have (x86).
ASKER
I can add the autocad type library but that makes no difference. I can communicate with autocad on computer 2 but some methods do not work on computer 2 - which I believe is caused by the difference in the references I noted.
That's the problem of your os the first computer is using 32bit for vb and second one is using 64 bit in vb see my previous answer again updated. And now manage the dll file path.
ASKER
How can I get vb6 on computer 2 to use 32 bit then?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can try re-installing vb6 in computer 2 - but I don't recall it ever asking to install as 32 bit or 64 bit.
Both Help screens in both computers indicate the vb6 application is 32 bit. Not sure how vb6 would install differently in one computer and not the other.
I think we are close to a solution- I just don't see how a 32 bit application can install as a 64 bit application.
Both Help screens in both computers indicate the vb6 application is 32 bit. Not sure how vb6 would install differently in one computer and not the other.
I think we are close to a solution- I just don't see how a 32 bit application can install as a 64 bit application.
There is no 64-bit version of VB6. Does the referenced file - "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VBA6.DLL" - exist on the second machine?
--
Chris
--
Chris
ASKER
The vba6.dll is in c:\program files (x86)\microsoft visual studio\vb98 directory
ASKER
I am aware that vb6 is 32 bit - but not sure how it can install as a 64 bit application.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.