?
Solved

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

Posted on 2008-06-25
7
Medium Priority
?
2,510 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

765 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