[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How can I run a 32 bit DLL on a 64 bit machine?

Posted on 2008-06-25
7
Medium Priority
?
2,515 Views
Last Modified: 2013-12-03
I would like to know how to run a 32-bit DLL on a 64-bit machine. The machine is running Windows XP x64 Edition. I have followed the instructions on the Microsoft website, which told me to execute the following at the command prompt:

cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true

and to configue IIS to run in IIS 5.0 isolation mode, but this didn't help. Is there a way to convert the DLL or to configure the 64-bit machine to run it?
0
Comment
Question by:swwells
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 21870306
Unfortunaltely not at all. You'd need a 32bit IIS for that to work, and 32bit services won't run on Win64 machines, since the SCM relies on registered callback functions, and these cannot be 32bit - since they cannot be called from 64bit code.
0
 

Author Comment

by:swwells
ID: 21875391
Thanks for your response

Unfortunately I can't find any information of how to rewrite the DLL for 64bit does anyone know of the best way to do this or know of any resources that can tell me the changes (I have the source coe) I will need to make to the currently DLL to enable it to run in a 64bit environment?

many thanks,
Si
0
 
LVL 86

Expert Comment

by:jkr
ID: 21876176
Setting the project to 64bit and recompiling should be all that's to be done...
0
 

Author Comment

by:swwells
ID: 22087496
Hi
My project is in Visual Basic 6.0 and I can't find a way to recompile the DLL for 64bit does anyone know how to do this or another way of doing this?

thanks,
Si
0
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 22091136
VB6 does not support 64bit (at the time it was released, there were no such CPUs), you'll need VB 2005: http://msdn.microsoft.com/en-us/library/2x7h1hfk(VS.80).aspx

See also http://support.microsoft.com/kb/894373 ("Information about using Visual Basic 6.0 on 64-bit Windows operating systems")
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

649 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