vb 中的注册表 Dword 是哪个数字?
根据最小值和最大值,VB 中的注册表 Dword 的数字转换为哪个数字?
我正在尝试构建一个可以读取和编辑注册表转储的编辑器
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
根据最小值和最大值,VB 中的注册表 Dword 的数字转换为哪个数字?
我正在尝试构建一个可以读取和编辑注册表转储的编辑器
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
这实际上很容易找出:
对于 REG_DWORD 值,这将打印“System.Int32”,这在 VB.NET 中是一个
Integer
。This is actually fairly easy to find out:
In the case of a REG_DWORD value this will print "System.Int32", which would be an
Integer
in VB.NET.对于 VB.Net,您应该使用
Integer
数据类型。有关可用数据类型的详细信息,请参阅这个方便的列表 。在旧版 Visual Basic 中,您可能使用long
数据类型。它具有正确的位数(32;x86
DWORD
是一个“双字”,其中一个字被理解为 16 位),但我认为 VB 不支持“无符号”值存在一个小问题。此限制可能会使演示/编辑变得更加复杂。For VB.Net, you should use the
Integer
data type. See this handy list for details on the available datatypes. In older Visual Basic, you would have used thelong
data type.This has the proper number of bits (32; an x86
DWORD
is a "double word", where a word is understood to be 16-bit), but I think there's a slight problem with VB not supporting "unsigned" values. This limitation might make presentation/editing a bit more complicated.