Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Help with WM_GETTEXT

Help with WM_GETTEXT

Scheduled Pinned Locked Moved Visual Basic
csharpjsonhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups