Sign in to follow this  

Making 64bit in 32bit environment

This topic is 2482 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have always used a 32 bit os, and I know that some of my programs I create that examine portions of another app's memory, will not work in 64 bit.

My gf has recently bought a new system that is 64 bit.... So my very noobish question is ....

Can I make programs that can run on her 64 bit system while programming them on my 32 bit system?

Also, if it is possible... In Vis C# 2008 Express, can I make an app that can detect the type of os its running on, and only execute certain functions so that it could
work on 64 bit or 32 bit?

Last question... what is the main difference in programming 32bit and 64bit? Why will some programs not work from one system to the next? I assume its the size of ptrs.

Thanks for the help, I googled about all this and I got so many conflicting answers, and confusing ones, I decided to ask on here for more expert advice.

Share this post


Link to post
Share on other sites
[quote]Last question... what is the main difference in programming 32bit and 64bit? Why will some programs not work from one system to the next? I assume its the size of ptrs.[/quote]

It looks like you can [url="http://wfrobozz.blogspot.com/2008/09/visual-c-2008-express-and-3264-bit.html"]tweak Visual C# 2008 Express[/url]so that you can choose the execution target. The article describes compiling to 32-bit from a 64-bit environment but you could try if it works the other way.

[quote]In Vis C# 2008 Express, can I make an app that can detect the type of os its running on, and only execute certain functions so that it could
work on 64 bit or 32 bit?[/quote]

You could try a loader program like [url="http://stackoverflow.com/questions/108971/using-side-by-side-assemblies-to-load-the-x64-or-x32-version-of-a-dll"]this[/url]. Also, please note [url="http://stackoverflow.com/questions/108971/using-side-by-side-assemblies-to-load-the-x64-or-x32-version-of-a-dll/108998#108998"]this comment[/url].

[quote]Last question... what is the main difference in programming 32bit and 64bit? Why will some programs not work from one system to the next? I assume its the size of ptrs.[/quote]


For an application programmer, it's mainly the size of pointers an that a program can use more than 4GB of RAM. Alas, programs also require more RAM because of increased pointer size.

Share this post


Link to post
Share on other sites

This topic is 2482 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this