I created my own message ans I subclassed WindProc. My problem is I dont know how to retrieve the string contained in the lparam.

Code :

dim variant_message as variant

variant_message = "Hello world!"

SendMessage hwndWin, WM_MYMESSAGE, 0, ByVal CStr(variant_Message)



Public Function WindProc(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

If wMsg = WM_MYMESSAGE Then
if lParam <> 0 then
What I have to do here ???????

Exit Function
End If

WindProc = CallWindowProc(WndProcOld&, hwnd&, wMsg&, wParam&, lParam&)

End Function

Thanks in advance