4
我无法将这段代码(最初在VB中)转换为C#。特别是,如何将一个负数应用于int。如何将此VB代码转换为C#?
Private Declare Function GetWindowLong Lib "user32" Alias _
"GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Const GWL_STYLE = (-16)
Private Const WS_MAXIMIZEBOX = &H10000
dim lStyle as long
lStyle = GetWindowLong(Lhwnd, GWL_STYLE)
lStyle = lStyle And Not WS_MAXIMIZEBOX
http://www.developerfusion.com/tools/convert/vb-to-csharp/ – 2010-07-21 17:32:47