Click here to Skip to main content
14,608,158 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi,

I have few int32.TryParse, Convert.ToInt32 and a lot of int type variables. Do I need to use int64.TryParse, Convert.ToInt64 and int64 instead?

Can I use one set of codes to build for both 32bit and 64bit?
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

There are two solutions to implement 64 bit processing.
1. Command Prompt
corflags application.exe /64BIT+ 


2. Developer Environment
Itz more of IDE setting to enable 64 bit power. You need to right click your project, and select properties. In properties, select the build tab. Under platform target, select x64.

Hit Ctrl+Shift+S to save all files, right click the solution and select "Clean" to get rid of old binaries. Any builds after that should be 64 bit
   
v2
Comments
eight 15-Dec-11 23:43pm
   
Thanks but will this turn my 32bit int to 64bit int? I'm asking because the 64bit exe runs a little slower than the 32bit exe. I suspect there's some automatic conversion stuff going on with the 64bit exe.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100