Help with WM_GETTEXT
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I am using the SendMessage API to read text from a textbox in a third party application. I am calling it using the following command: Win32API.SendMessage(hwnd, WM_GETTEXT, textlength, mymessage) where hwnd is an Int32 representing the textbox handle; WM_GETTEXT is a constant textlength is the number of characters to be retrieved; and mymessage is the string to store the info. Everything seems OK apart from the fact that when I try and display the string it simply appears as a series of blobs.....not readable text (see below). 片敡敭丠睥慭敔瑳倠条eಇ䐁 This is my first foray into the world of Win32 APIs and VB.Net so your help would be much appreciated.