• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2518
  • Last Modified:

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

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
swwells
Asked:
swwells
  • 3
  • 2
1 Solution
 
jkrCommented:
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
 
swwellsAuthor Commented:
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
 
jkrCommented:
Setting the project to 64bit and recompiling should be all that's to be done...
0
 
swwellsAuthor Commented:
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
 
jkrCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now