Solved

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

Posted on 2008-06-25
7
2,494 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
  • 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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now