|
-
Mar 6th, 2001, 07:23 AM
#1
Can anyone post or link to a demonstration of the EM_GETHANDLE and EM_SETHANDLE? I am trying to read the memory address of a text box's buffer, and can't seem to do it. I am aware that sethandle is supposed to use wparam to pass the memory handle.
This is the code i used:
MsgBox SendMessage(rtHwnd, EM_GETHANDLE, wp, lp)
Debug.Print wp; lp
where rthwnd is text1.hwnd.
the debug.print returns two zeros.
the msgbox shows a zero, indicating failure.
i have the declaration of em_gethandle like this:
Const EM_GETHANDLE = &HBD
-
Mar 6th, 2001, 10:34 AM
#2
Fanatic Member
EM_GETHANDLE and EM_SETHANDLE apply only to MULTILINE edit controls.......
Set the property of your textbox to multiline and try it again - watch the results - v. annoying. The question for you now I guess is can you poke an AOL edit control with a multiline property so you can get the text out of its buffer, I dont know, but I wish you luck....
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Mar 6th, 2001, 05:30 PM
#3
heh i already tried it on aol edit control The problem is that win32 isolates individual program's memory in such a way that it is (as far as i have been able to tell so far) impossible to read data from it.
-
Mar 7th, 2001, 12:02 AM
#4
Ok, i am able to read the memory handle of a standard edit box when i set it to multi-line, but it doesn't work on richtextbox when i set it to multiline. Any solution?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|