|
-
Dec 9th, 2001, 03:18 PM
#1
Thread Starter
Addicted Member
Error With API call
I Have the following code:
Public Declare Function keybd_event Lib "user32" (ByVal bVk _
As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, _
ByVal dwExtraInfo As Long)
Public Sub ScreenCapture()
keybd_event vbKeySnapshot, 1, 0, 0
End Sub
I AM GETTING THE FOLLOWING ERROR:
Bad DLL Calling Convention (Error 49)
Does anyone know why???? ..... as far as i know, I am calling the function correctly..... (i have also tried:
Call keybd_event (vbKeySnapshot, 1, 0 ,0) but it gives the same error!)
To protect time is to protect everything...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|