Skip to content

ProcessorArchitecture

返回运行中应用程序所构建的处理器架构。

语法:ProcessorArchitecture [ () ]

返回值是一个 VbArchitecture 常量:32 位构建为 vbArchWin32,64 位构建为 vbArchWin64

示例

vb
If ProcessorArchitecture() = vbArchWin64 Then
    Debug.Print "Running as 64-bit"
Else
    Debug.Print "Running as 32-bit"
End If

另请参阅

twinBASIC及其LOGO版权为作者"韦恩"所有