Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hamid_RT6-Dec-08 4:16
Hamid_RT6-Dec-08 4:16 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hadi Dayvary6-Dec-08 8:11
professionalHadi Dayvary6-Dec-08 8:11 
GeneralRe: create x64 support ocx in visual c++ 6 [modified] Pin
samira forooghi6-Dec-08 20:00
samira forooghi6-Dec-08 20:00 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hamid_RT7-Dec-08 17:50
Hamid_RT7-Dec-08 17:50 
QuestionHow can i get text from CRichEditCtrl Pin
york5285-Dec-08 19:36
york5285-Dec-08 19:36 
AnswerRe: How can i get text from CRichEditCtrl Pin
Code-o-mat6-Dec-08 2:14
Code-o-mat6-Dec-08 2:14 
GeneralRe: How can i get text from CRichEditCtrl Pin
york5286-Dec-08 4:08
york5286-Dec-08 4:08 
GeneralRe: How can i get text from CRichEditCtrl Pin
Code-o-mat6-Dec-08 4:53
Code-o-mat6-Dec-08 4:53 
Most IM programs support plugins, maybe it would be easier to write one if the one you want to target there does so? Anyhows, docs say that WM_GETTEXT works over process boundaries for some controls, and for some it doesn't, so i guess for rich edit it doesn't work. You could try a trick but it's not too safe and reliable. You could allocate shared memory, lock it, post WM_GETTEXT to the control passing the address of the shared memory block, wait a while (sadly you can't really know if the rich edit control has processed that message yet or not) and then you should have the text in the memory block. However, this can lead to crashes and asynch problems. You could try for example filling the buffer with 1s, and then after you sent the message keep checking for a 0 character, assuming that you have allocated a big enough buffer, when the 0 is there then the rich edit has probably finished copying its text into the buffer (since 0 should be the last character of the text and we assume it is copying the text from its start to its end). Combining that with maybe some timeouting...
Or on a different aproach, you could inject a DLL into the process that hooks itself to the rich edit control and could for example when the control gets WM_SETTEXT copy the text into some shared buffer and notify your process of the change.
This all is just ideas, don't know if any of it could ever work.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <

GeneralRe: How can i get text from CRichEditCtrl Pin
york52810-Dec-08 17:57
york52810-Dec-08 17:57 
QuestionHow to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic5-Dec-08 18:55
kcynic5-Dec-08 18:55 
AnswerRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 5-Dec-08 20:36
professional Randor 5-Dec-08 20:36 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic5-Dec-08 20:48
kcynic5-Dec-08 20:48 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 5-Dec-08 21:28
professional Randor 5-Dec-08 21:28 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic5-Dec-08 21:31
kcynic5-Dec-08 21:31 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic6-Dec-08 2:57
kcynic6-Dec-08 2:57 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 6-Dec-08 9:15
professional Randor 6-Dec-08 9:15 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic6-Dec-08 14:56
kcynic6-Dec-08 14:56 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 6-Dec-08 15:30
professional Randor 6-Dec-08 15:30 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic6-Dec-08 16:29
kcynic6-Dec-08 16:29 
Questionworker thread problem.......... Pin
shaina22315-Dec-08 18:26
shaina22315-Dec-08 18:26 
AnswerRe: worker thread problem.......... Pin
Randor 5-Dec-08 20:24
professional Randor 5-Dec-08 20:24 
AnswerRe: worker thread problem.......... Pin
David Crow6-Dec-08 12:38
David Crow6-Dec-08 12:38 
Questiondeleting a file from the application Pin
prithaa5-Dec-08 18:26
prithaa5-Dec-08 18:26 
AnswerRe: deleting a file from the application Pin
kcynic5-Dec-08 19:06
kcynic5-Dec-08 19:06 
AnswerRe: deleting a file from the application Pin
Hamid_RT5-Dec-08 19:34
Hamid_RT5-Dec-08 19:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.