我如何才能找到我正在运行的平台(32/64位)? [英] How I can find out on which platform I am running (32/64 bits)?

查看:62
本文介绍了我如何才能找到我正在运行的平台(32/64位)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在VB .Net 2005中构建一个Windows应用程序,并且用于部署

应用程序我需要运行一些exe'如果它是32位而且一些

其他exe为64位


谁能告诉我如何使用VB .Net找到它

提前致谢

-Sajin

解决方案

我不喜欢我有你的代码,但你需要使用带有OSVERSIONINFOEX结构的GetVersionEx API




使用环境名称方式获取基本操作系统版本

http://support.microsoft.com/kb/3042...icrosoft.com/k

b / 304722 / en-us)&传递给上面的API


然后你可以找出它的服务器/工作站/服务包级别......


我希望这个是有用的


新手编码器

" sajin" < sa *** @ iprlab.com写了留言

news:11 ********************** @ 73g2000cwn.googlegro ups .com ...


大家好,


我正在VB .Net 2005中构建一个Windows应用程序,并且部署

应用程序我需要运行一些exe'如果它是32位而一些

其他exe'是64位

谁能告诉我如何使用VB发现这个.Net


提前谢谢

-Sajin


这里有一些示例代码:
http://www.planet-source-code.com/vb...39625&lngWId=1 <星球源代码上的
。虽然这是VB6。我不知道

vb.net中的任何内容 - 可能有,但我个人只是不知道

any。

问候,

ImageAnalyst

sajin写道:


大家好,


我正在VB .Net 2005中构建一个Windows应用程序,并且用于部署

应用程序我需要运行一些exe',如果它是32位并且一些

其他exe的64位


谁能告诉我如何使用VB发现这个.Net


提前致谢

-Sajin


但是通过该代码的PSC屏幕,你会看到它说的东西喜欢

专业版/家庭版...实际上它实际上并没有打破它,是吗?

虽然只有64位才有用。 />

让我们将代码翻译成碎片看看我们是否可以做一个简单的翻译。需要

得到我的VS 6企业版光盘''因为VB.NET的升级功能还没有

所有这些,是吗?
< br $> b $ b新手编码器


Hi All,

I am building a windows application in VB .Net 2005 , and for deploying
the application i need to run some exe''s if it is 32 bits and some
other exe''s for 64 bits

Can anyone tell me how can i findout this using VB .Net
Thanks in advance
-Sajin

解决方案

I don''t have the code for you, but you will need to use the GetVersionEx API
with the OSVERSIONINFOEX Structure

Use the Environment namespeace to get the basic OS version
(http://support.microsoft.com/kb/3042...icrosoft.com/k
b/304722/en-us) & pass to the above API

You can then find out if its a server/workstation/service pack level...

I hope this is of some use

Newbie Coder
"sajin" <sa***@iprlab.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...

Hi All,

I am building a windows application in VB .Net 2005 , and for deploying
the application i need to run some exe''s if it is 32 bits and some
other exe''s for 64 bits

Can anyone tell me how can i findout this using VB .Net
Thanks in advance
-Sajin



Some sample code is here:
http://www.planet-source-code.com/vb...39625&lngWId=1
on Planet Source Code. It''s VB6 though. I don''t know of anything in
vb.net to get that - there may be, but I personally am just unaware of
any.
Regards,
ImageAnalyst

sajin wrote:

Hi All,

I am building a windows application in VB .Net 2005 , and for deploying
the application i need to run some exe''s if it is 32 bits and some
other exe''s for 64 bits

Can anyone tell me how can i findout this using VB .Net
Thanks in advance
-Sajin


But with the PSC screen from that code you see that it says things like
Professional/home... That isn''t actually breaking it down far enough, is it?
Only the 64 bit is of use there though.

Lets rip the code to pieces & see if we can do a simple translation. Need to
get my VS 6 Enterprise discs out ''cos the upgrade feature in VB.NET ain''t
all that, is it?

Newbie Coder


这篇关于我如何才能找到我正在运行的平台(32/64位)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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