永发信息网

VB问题:以下的有错误吗?

答案:2  悬赏:60  手机版
解决时间 2021-07-21 02:23
  • 提问者网友:沦陷
  • 2021-07-20 21:26

Private Declare Function GetDC Lib "user32" (ByUal hwnd As Long) As Long

Private Declare Function GetPixel Lib "gdi32" (ByUal hdc As Long,ByUal x As Long,ByUalx y As Long)asLong

以上的代码哪错了,怎么放到VB上显示红色啊 怎么用不了啊 请帮忙看下,并解释下代码的含义,谢谢了

最佳答案
  • 五星知识达人网友:忘川信使
  • 2021-07-20 22:07

Private Declare Function GetPixel Lib "gdi32" (ByUal hdc As Long,ByUal x As Long,ByUalx y As Long) as


Long


有的地方,你没加空格!

全部回答
  • 1楼网友:長槍戰八方
  • 2021-07-20 22:30

Private Declare Function GetDC Lib "user32" (Byval hwnd As Long) As Long

Private Declare Function GetPixel Lib "gdi32" (Byval hdc As Long,ByVal x As Long,ByVal x y As Long)as Long

'

'是关键字打错了,复制这个就行了

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯