| Article | 60000073 |
| Type | HowTo |
| Product | Engine |
| Version | 6 |
| Date Added | 3/12/2007 |
| Submitted by | Peter Chanios |
| Keywords |
From Version 6004 the setup is build to work in both machines 64 and 32 bit. The libraries run like 32 bit in both systems. In 64 bit machines in order for your project to build please add the following statement into your project.
Your project pre-build step would be:
IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe setwow
Your project post-build step would be:
IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe set64
This statement will allow to build into a 64 bit machine the 32 bit libraries of our component.
If you have both 64 and 32 bit systems in your machine and you try to build your application into the 32 bit machine(at the 64 bit you will not have any problem) then you will experience a dll exception. Then you can either remove the above statements or rename the C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe file so the "IF" statements does not find the specified file and it can build the project as 32 bit like your system.
If you are using Vista then read also this article.