| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 775 人关注过本帖
标题:为什么找不到showcursor in user 32
只看楼主 加入收藏
泰山石敢当
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2007-6-3
收藏
 问题点数:0 回复次数:2 
为什么找不到showcursor in user 32

下面的程序运行的时候为什么会出现"找不到DLL入口点  showcursor in user 32"的错误呢??红色的那句.

Private Declare Function showcursor Lib "user32" (ByVal bshow As Long) As Long

Private Sub Form_click()
X = showcursor(True)
End
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
X = showcursor(True)
End
End Sub

Private Sub Form_Load()
Dim X As Long
X = showcursor(False)
Label1.Left = 0
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static currentx, currenty As Single
Dim orignx, origny As Single
orignx = X
ortgny = Y
If currentx = 0 And currenty = 0 Then
currentx = orignx
currenty = origny
Exit Sub
End If
If Abs(orignx - currentx) > 20 Or Abs(origny - currenty) > 20 Then
X = showcursor(True)
End
End If
End Sub

Private Sub Label1_Click()
X = showcursor(True)
End
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static curx, cury As Single
Dim orx, ory As Single
orx = X
ortgny = Y
If curx = 0 And cury = 0 Then
curx = orx
cury = ory
Exit Sub
End If
If Abs(orx - curx) > 20 Or Abs(ory - cury) > 20 Then
X = showcursor(True)
End
End If
End Sub

Private Sub Timer1_Timer()
Static xx, yy As Single
Static ii As Integer
Timer1.Interval = 1000
Form1.Refresh
Label1.Left = xx
Label1.Top = yy + 500
If xx > Form1.ScaleWidth Then
xx = 0
Label1.ForeColor = RGB(255 - ii, ii, 255 - ii)
yy = yy + 500
End If
If (yy + 500 + Label1.Height) > Form1.ScaleHeight Then yy = 0
ii = (ii + 50) Mod 255
xx = xx + 50

End Sub

搜索更多相关主题的帖子: showcursor user 
2007-06-16 16:23
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
收藏
得分:0 
Private Declare Function ShowCursor Lib "user32" Alias "ShowCursor" (ByVal bShow As Long) As Long

API函数要注意区分函数名大小写!!!!!!!!!!!!!

VB QQ群:47715789
2007-06-16 16:38
泰山石敢当
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2007-6-3
收藏
得分:0 
噢。。。谢谢。。好了。。THANK YOU
2007-06-16 16:55
快速回复:为什么找不到showcursor in user 32
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016087 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved