枚举问题 [英] Enum problem
问题描述
HI
Public Enum WindowStyles作为UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
结束枚举
在上面我得到一个错误
0x00000000,0x80000000,0x40000000
消息预期声明结束
我如何纠正它们
TIA
Barry
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
end enum
In the above i get an error at
0x00000000 , 0x80000000 , 0x40000000
message "End of statement expected"
how do i correct them
TIA
Barry
推荐答案
4月3日上午8:03,MSNEWS < some ... @ somewhere.comwrote:
On Apr 3, 8:03 am, "MSNEWS" <some...@somewhere.comwrote:
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
结束枚举
在上面我得到一个错误
0x00000000,0x80000000,0x40000000
消息预期结束语句
如何我纠正它们
TIA
Barry
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
end enum
In the above i get an error at
0x00000000 , 0x80000000 , 0x40000000
message "End of statement expected"
how do i correct them
TIA
Barry
Public Enum WindowStyles As UInteger
WS_OVERLAPPED =& H00000000
WS_POPUP =& H80000000
WS_CHILD =& H40000000
结束枚举
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = &H00000000
WS_POPUP = &H80000000
WS_CHILD = &H40000000
End Enum
在VB.NET中,你没有使用C ++方式指定hex。改为使用:
Public Enum WindowStyles作为UInteger
WS_OVERLAPPED =& H00000000
WS_POPUP =& H80000000 >
WS_CHILD =& H40000000
end enum
" MSNEWS" < so ***** @ somewhere.comwrote in message
news:u1 ************** @ TK2MSFTNGP05.phx.gbl ...
In VB.NET you don''t use the C++ way of specifying hex. Use this instead:
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = &H00000000
WS_POPUP = &H80000000
WS_CHILD = &H40000000
end enum
"MSNEWS" <so*****@somewhere.comwrote in message
news:u1**************@TK2MSFTNGP05.phx.gbl...
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
结束枚举
在上面我收到错误
0x00000000,0x80000000,0x40000000
留言预期声明结束
我如何纠正它们
TIA
Barry
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
end enum
In the above i get an error at
0x00000000 , 0x80000000 , 0x40000000
message "End of statement expected"
how do i correct them
TIA
Barry
谢谢大家的快速回复。 />
我基本上是在尝试将C#应用程序转换为VB.NET
我很难在& 0x00000(接近&)处收到错误在VS 2005中
消息是表达预期
MSNEWS < so ***** @ somewhere.comwrote in message
news:u1 ************** @ TK2MSFTNGP05.phx.gbl ...
Thank you guys for your quick response.
I am basically trying to convert a C# app to VB.NET
I am stiil getting a error at &0x00000 (near &) in VS 2005
message is "Expression expected"
"MSNEWS" <so*****@somewhere.comwrote in message
news:u1**************@TK2MSFTNGP05.phx.gbl...
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
结束枚举
在上面我收到错误
0x00000000,0x80000000,0x40000000
留言预期声明结束
我如何纠正它们
TIA
Barry
HI
Public Enum WindowStyles As UInteger
WS_OVERLAPPED = 0x00000000
WS_POPUP = 0x80000000
WS_CHILD = 0x40000000
end enum
In the above i get an error at
0x00000000 , 0x80000000 , 0x40000000
message "End of statement expected"
how do i correct them
TIA
Barry
这篇关于枚举问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!