Solved

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

Posted on 2008-06-25
7
2,506 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 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

691 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