DLL Issues

Joined
Jan 5, 2008
Messages
8
Programming Experience
Beginner
Hello all, I'm having DLL issues. I'm trying to send strings to a game using a DLL and the DLL came with a tutorial but there are issues. This code comes up.

Public Declare Sub CKHSendString Lib "WindowerHelper.dll" (ByVal helper As Integer, ByVal data As String)

The issue is Declare, there is a line under it that says it's not valid as an Identifier. In the example file that came with the tutorial it is a valid statement. Also, in another Tutorial that helped there wasn't even a mention of a DLL in the form.

It just says this

Private Sub cmdSendString_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdSendString.Click
Call CKHSendString(lKeyboardHelper, txtInput.Text)
End Sub

Can anyone shed some light on my situation?
 
Declares are put at class/module level, that means inside a class but not inside a class method.
 
Back
Top