64位PC上的32位项目.我需要更改任何代码吗?
我只有几个int32.TryParse
,Convert.ToInt32
和很多int
类型变量.我需要改用int64.TryParse
,Convert.ToInt64
和int64
吗?
我可以使用一组代码来同时构建32位和64位吗?
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?
有两种解决方案可以实现64位处理.
1.命令提示符
There are two solutions to implement 64 bit processing.
1. Command Prompt
corflags application.exe /64BIT+
2.开发人员环境
IDE的更多设置可启用64位电源.您需要右键单击您的项目,然后选择属性.在属性中,选择构建选项卡.在平台目标下,选择x64.
按Ctrl + Shift + S保存所有文件,右键单击解决方案,然后选择清理"以清除旧的二进制文件.此后的所有构建都应为64位
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