![]() |
|
#1
|
|||
|
|||
WM_GETTEXT problemHi, I'm trying to print out the text from another application's text field.
Using a program similar to Spy++, I got the window address. Along with the address, I got the window's class: RichTextWndClass I wrote this app to print out the text box: CPP / C++ / C Code:
Here are the results: Quote:
What am I doing wrong? |
|||
|
#2
|
||||
|
||||
Re: WM_GETTEXT problemQuote:
...it may not be "char" data in the WM_TEXT, it may be TCHAR...and then printf won't be much help unless you wcstombs it first. I probably wouldn't use the hardcoded handle value of the window. Why not use FindWindow? MxB |
|
#3
|
|||
|
|||
Re: WM_GETTEXT problemCPP / C++ / C Code:
Still returning the same type of output.. Anything else I can try? Quote:
Good suggestion; I'll definitely set that up as soon as I get this thing to spit out some text. There has to be a way to get it because I can see the text field's string in the window inspector. Suggestions? |
|
#4
|
||||
|
||||
Re: WM_GETTEXT problemQuote:
...you need to specify the number of characters to "get" as the WPARAM. Try: (WPARAM)sizeof(display)/sizeof(TCHAR) MxB |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Web Server newbie problem | niss3 | Apache Web Server Forum | 1 | 13-Apr-2009 19:38 |
| Torrents Download Problem | chandeep | Computer Software Forum - Linux | 7 | 09-Oct-2006 23:37 |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 13:31 |
| Runtime Problem involving "printf" in C Program | supamakia | C Programming Language | 2 | 09-Oct-2005 11:09 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 08:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The