Click here to Skip to main content
15,914,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDlls - Please Help me! Pin
19-Jan-02 16:51
suss19-Jan-02 16:51 
GeneralRe: Dlls - Please Help me! Pin
20-Jan-02 6:15
suss20-Jan-02 6:15 
GeneralRe: Dlls - Please Help me! Pin
Rick York20-Jan-02 7:19
mveRick York20-Jan-02 7:19 
GeneralRe: Dlls - Please Help me! Pin
20-Jan-02 7:30
suss20-Jan-02 7:30 
GeneralRe: Dlls - Please Help me! Pin
Rick York20-Jan-02 14:19
mveRick York20-Jan-02 14:19 
GeneralRe: Dlls - Please Help me! Pin
Christopher Lord20-Jan-02 11:37
Christopher Lord20-Jan-02 11:37 
GeneralSendMessage Pin
Alan Blakely19-Jan-02 14:55
Alan Blakely19-Jan-02 14:55 
GeneralRe: SendMessage Pin
Christopher Lord20-Jan-02 11:44
Christopher Lord20-Jan-02 11:44 
You can send messages to other processes with ::SendMessage(HWND Hand...)

but you can not send pointers to memory through messages (which is what you appear to be doing). this is because each process has its own memory chunk. your valid pointer in one process will point to junk in another process.


*edited to add:
The solution is to inject a thread into your target process, put a string in its memory, then return the pointer to your own application, where you can do further processing, and send the message with a valid pointer back into the target process.



// Rock
GeneralRe: SendMessage Pin
Roger Allen21-Jan-02 2:36
Roger Allen21-Jan-02 2:36 
GeneralVC.Net resource file always rebuilds Pin
Tim Smith19-Jan-02 13:17
Tim Smith19-Jan-02 13:17 
GeneralRe: VC.Net resource file always rebuilds Pin
Christian Graus19-Jan-02 13:59
protectorChristian Graus19-Jan-02 13:59 
GeneralRe: VC.Net resource file always rebuilds Pin
Tim Smith19-Jan-02 14:15
Tim Smith19-Jan-02 14:15 
GeneralArrays Pin
Alan Blakely19-Jan-02 11:32
Alan Blakely19-Jan-02 11:32 
GeneralRe: Arrays Pin
Christian Graus19-Jan-02 12:47
protectorChristian Graus19-Jan-02 12:47 
GeneralRe: Arrays Pin
Alan Blakely19-Jan-02 13:24
Alan Blakely19-Jan-02 13:24 
GeneralRe: Arrays Pin
Christian Graus19-Jan-02 22:56
protectorChristian Graus19-Jan-02 22:56 
GeneralRedimensioning Arrays Pin
DiegoValdevino19-Jan-02 11:16
DiegoValdevino19-Jan-02 11:16 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 11:25
protectorChristian Graus19-Jan-02 11:25 
GeneralRe: Redimensioning Arrays Pin
Prem Kumar19-Jan-02 11:30
Prem Kumar19-Jan-02 11:30 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 12:37
protectorChristian Graus19-Jan-02 12:37 
GeneralRe: Redimensioning Arrays Pin
l a u r e n19-Jan-02 23:05
l a u r e n19-Jan-02 23:05 
GeneralRe: Redimensioning Arrays Pin
Christian Graus19-Jan-02 23:31
protectorChristian Graus19-Jan-02 23:31 
GeneralToolbar graphic Pin
Jon Newman19-Jan-02 9:32
Jon Newman19-Jan-02 9:32 
GeneralMaintaining VC 5.0 and VC 6.0 Pin
Phil F19-Jan-02 9:14
Phil F19-Jan-02 9:14 
GeneralRe: Maintaining VC 5.0 and VC 6.0 Pin
Rick Crone24-Jan-02 10:21
Rick Crone24-Jan-02 10:21 

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.