小弟无聊,编了个和人开玩笑的小东西,可在本机上运行没问题,在别人机器说DLL有问题,为什么?
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Sub Form_Load()
Timetxt.Text = Format(Time, "medium time")
'Timetxt.Refresh
Timetxt.Locked = True
Call RegisterServiceProcess(GetCurrentProcessId(), 1)
End SubPrivate Sub Label2_Click()
End
End SubPrivate Sub Timer1_Timer()
Label1.Left = Label1.Left - 50
If Label1.Left < -6000 Or Label1.Left = -6000 Then
Label1.Left = 6600
End If
End Sub
高手给看看,到底那里出问题了?
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Sub Form_Load()
Timetxt.Text = Format(Time, "medium time")
'Timetxt.Refresh
Timetxt.Locked = True
Call RegisterServiceProcess(GetCurrentProcessId(), 1)
End SubPrivate Sub Label2_Click()
End
End SubPrivate Sub Timer1_Timer()
Label1.Left = Label1.Left - 50
If Label1.Left < -6000 Or Label1.Left = -6000 Then
Label1.Left = 6600
End If
End Sub
高手给看看,到底那里出问题了?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货