Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
jcl  
#1 Posted : Sunday, July 25, 2004 10:55:00 PM(UTC)
jcl

Rank: Member

Groups: Member
Joined: 5/27/2004(UTC)
Posts: 7

I am trying to process Mouse Move events for a BitmapViewer object and I am getting a compile error: The message is - Procedure declaration does not match description of event or procedure having the same name.

I am using

Code:
Sub BitmapViewer1_MouseMove(Button As Long, Shift As Long, x As Long, y As Long) 


any ideas as to what the problem might be?

Edited by user Monday, December 24, 2007 5:14:34 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Sunday, July 25, 2004 11:32:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Did you generate this event handler by VB6 IDE or write it manually?

Try this one:

Code:
Private Sub BitmapViewer1_MouseMove(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long)

End Sub


As far as I remember VB6 uses ByRef by default. So your event handler has wrong arguments list.

Edited by user Monday, December 24, 2007 5:14:44 PM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.