c源代码转vb.net c语言源码怎么变成程序( 二 )


Public Shared Function GetWindowLong(hWnd As IntPtr, nIndex As Integer) As Integer
End Function
Public Const GWL_STYLE As Integer = -16
Public Const WS_DISABLED As Integer = H8000000
Public Shared Sub SetControlEnabled(c As Control, enabled As Boolean)
If enabled Then
SetWindowLong(c.Handle, GWL_STYLE, (Not WS_DISABLED) And GetWindowLong(c.Handle, GWL_STYLE))
Else
SetWindowLong(c.Handle, GWL_STYLE, WS_DISABLED + GetWindowLong(c.Handle, GWL_STYLE))
End If
End Sub
授人以渔:
这个网站超牛逼
请大侠帮我将C代码转换成VB.Net , 谢谢!public function Calculate_CRC8(byval crc as uint16,byval n as uint16) as uint16
dim i as uint16
crc=crc xor n
for i=0 to 7
if crc and 1 then
crc=(crc1) xor H8c
else
crc=crc1
end if
next
return crc
end function
【c源代码转vb.net c语言源码怎么变成程序】c源代码转vb.net的介绍就聊到这里吧,感谢你花时间阅读本站内容 , 更多关于c语言源码怎么变成程序、c源代码转vb.net的信息别忘了在本站进行查找喔 。

推荐阅读