Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / compiler

CPU Build: x86 and x64 / 32 bits and 64 bits

4.91/5 (5 votes)
23 Feb 2011CPOL 15.2K  
Application running in 32 and 64 bits
If you use a Microsoft Access database, you should know that the provider works only in 32 bits. And there're lots of drivers that only work in 32 bits. So, how could you create an application for 64 bits using some provider or driver that only works in 32 bits?
There's a simple solution:

In Visual Studio --> Project properties --> Build tab --> Platform target --> Select x86

This will compile the source code in 32 bits and the application will run both in 32 and 64 bits environments in the same way. You are not going to enjoy 64 bits capabilities but the application will work as it does in a 32 bits environment.

I hope you enjoyed my first programming tip. I have a technical blog but it's in Spanish so I will start posting here in English.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)