Error on DllImport (PInvoke) syntax

W

Water Cooler v2

<DllImport("user32.dll", EntryPoint := "UnregisterHotKey"> _
Public Function Win32UnregisterHotKey( _
ByVal hWnd As IntPtr, _
ByVal id As Integer) As Integer
End Function


squiggles every keyword in the above and the tool-tip says: "Expression
Expected".

Uh?
 
H

Howard Kaikow

Water Cooler v2 said:
<DllImport("user32.dll", EntryPoint := "UnregisterHotKey"> _
Public Function Win32UnregisterHotKey( _
ByVal hWnd As IntPtr, _
ByVal id As Integer) As Integer
End Function


squiggles every keyword in the above and the tool-tip says: "Expression
Expected".

Uh?


Missing ")" before ">".
 
W

Water Cooler v2

Yup! thanks! Saw that immediately after making the original post but
couldn't reply sooner than now to say "all systems go".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top