从vb6迁移到vb.net的数据类型(x64位) [英] what datatype in migration from vb6 to vb.net(x64 bit)

查看:120
本文介绍了从vb6迁移到vb.net的数据类型(x64位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB6项目,我想在vs2008上进行升级.现在我将其转换为x86位
它的工作正常,但对于x64来说却存在一些问题.我认为主要问题是来自数据类型.因此,我想知道什么是x64位平台的通用数据类型更改.
就像我变了
整数到Intptr
但是有些事情是错误的.

I have a VB6 project and I want it to upgrade on vs2008.Now I convert it for x86 bit
and its work fine but for x64 it has some issues.I think the main problem is from Data type.So I want to know that what is the comman data type changes that should be for x64 bit platform.
Like I changed
Integer to Intptr
but some thing is wrong.

推荐答案

首先,不要使用IntPtr,我认为您应该使用Short数据类型.请检查此内容,因为它可能对您有帮助 http://www.vbmigration.com/Resources/detmigratingfromvb6 .aspx?Id = 7 [ ^ ]
其次,我不知道为什么它不能与x64一起使用.请检查 http://msdn.microsoft. com/en-us/library/ms973190.aspx [ ^ ]
Well first instead of IntPtr I think you should be using the Short data type. check this out as it may be of help to you http://www.vbmigration.com/Resources/detmigratingfromvb6.aspx?Id=7[^]
Second I don''t know why its not working with x64 check this out http://msdn.microsoft.com/en-us/library/ms973190.aspx[^]


迁移时使用 short to Int32
考虑这些 [ ^ ]进行迁移.
while migrating use short to Int32
consider these[^] things while migrating.


这篇关于从vb6迁移到vb.net的数据类型(x64位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆