473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

64 bit configuration

Hi,
I'm trying to build my application for both 32 and 64 bit Windows but
my project references a non-managed Dll that comes in 2 formats, one
for 32 and one for 64. How do I set up my solution so that I can
build for both targets easily? Is it possible?

Also, are there any problems using 'unsafe' code if I'm trying to run
on x64?

Thanks,
Feb 6 '08 #1
4 1955
<bo**********@hotmail.comwrote in message
news:34**********************************@e4g2000h sg.googlegroups.com...
Hi,
I'm trying to build my application for both 32 and 64 bit Windows but
my project references a non-managed Dll that comes in 2 formats, one
for 32 and one for 64. How do I set up my solution so that I can
build for both targets easily? Is it possible?

Also, are there any problems using 'unsafe' code if I'm trying to run
on x64?

Thanks,


This program doesn't take advantage of 64-bit, so I would suggest you to
build a 32-bit version only, a 32-bit version will run on both 32 and 64 bit
Windows.

Willy.

Feb 6 '08 #2
>
This program doesn't take advantage of 64-bit, so I would suggest you to
build a 32-bit version only, a 32-bit version will run on both 32 and 64 bit
Windows.

Willy.
But lagging if Im correctly informed, running MS SQL server 64 bit
version only came with 32 bit management so it was best to manage it
from anywhere but the server. Guessing it gets problems with memory
alignment just like Alpha/I64 running OpenVMS or is it emulating
32bit?

//CY
Feb 7 '08 #3
<ch*******@gmail.comwrote in message
news:93**********************************@h11g2000 prf.googlegroups.com...

This program doesn't take advantage of 64-bit, so I would suggest you to
build a 32-bit version only, a 32-bit version will run on both 32 and 64
bit
Windows.

Willy.

But lagging if Im correctly informed, running MS SQL server 64 bit
version only came with 32 bit management so it was best to manage it
from anywhere but the server. Guessing it gets problems with memory
alignment just like Alpha/I64 running OpenVMS or is it emulating
32bit?

//CY


IA-64 and Alpha are "real" 64-bit processors, that is they can only run, a
single, 64-bit based instruction set.
The X86-64 kind architectures(AMD 64 and Intel 64) have two different modes
of operation, a native mode and an extended mode.
These processors can run native 32-bit (IA-32) code when initialized in
native mode, and 64-bit code (IA-32e)when initialized for long mode, the
"64-bit" instruction set is nothing more than an extension of the IA-32
instruction set (hence the IA-32e), and is completely different from the
IA64 instruction set. The great advantage of this architecture is that it
can run 32-bit X86 and "64-bit" user code while running a 64-bit (X64) based
OS, without the need for a 32-bit "emulator" like the IA64 and Alpha
architecture does.
All the (X64) OS has to do, is perform a switch from IA-32 mode to IA-32e
mode when a 32-bit user program transitions into the kernel, this switch
takes a hit of less than 100 cycles, which is < 0.2% of the time taken to
transition into kernel space.
The alignment requirements depend on the mode the processor actually
executes, no surprises here, 32-bit code must adhere to the IA-32
requirements, while IA-32e has the 64-bit requirements.
Willy.

Feb 7 '08 #4
We have a case where we have a license file that changes based on the build
configuration. So if you're compiling in Debug mode, it needs one license
file; if you're compiling in Release mode, it needs a different one.

We handled this by setting up a folder called \license_debug and a folder
called \license_release in the project, and putting the appropriate license
in each folder.

Then with post-build commands, we use the right variables and copy the right
one into the main folder. This is why our folders are called debug and
release. Here's the post-build command:

COPY/Y "$(TargetDir)license_$(ConfigurationName)\*.*" "$(TargetDir)"

Presumably, you could do the same thing with DLLs.

RobinS.
GoldMail, Inc.
--------------------------------------
<bo**********@hotmail.comwrote in message
news:34**********************************@e4g2000h sg.googlegroups.com...
Hi,
I'm trying to build my application for both 32 and 64 bit Windows but
my project references a non-managed Dll that comes in 2 formats, one
for 32 and one for 64. How do I set up my solution so that I can
build for both targets easily? Is it possible?

Also, are there any problems using 'unsafe' code if I'm trying to run
on x64?

Thanks,
Feb 9 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
5
by: Water Cooler v2 | last post by:
I know that we can add a single name value entry in app.config or web.config in the configuration/configSettings/appSettings section like so: <add key="key" value="value" /> Question: I want...
1
by: Jess Chadwick | last post by:
I am attempting to use the Enterprise Library (Jan 2006) Cryptography block to encrypt a credit card number in my ASP.NET 2.0 Commerce Server application. Everything is configured correctly, as...
4
by: Michael Lang | last post by:
I was basically wanting to know how to use the System.Configuration namespace to be able to load an arbitrary number of unknown attributes on an element in a custom section in the .config into a...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
7
by: Arno R | last post by:
Hi all, I am sending mail from my apps with CDO nowadays. However I have one client where this will not work until now. I am thinking this is related to the provider where the client has his...
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi, thanks, mister The code string rutaConfig = tbRutaConfigServicioBase.Text; '// Map to the application configuration file. ExeConfigurationFileMap configFile = New...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.