Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 20:12
protectorChristian Graus27-Jan-02 20:12 
GeneralRe: read from file Pin
Christian Graus27-Jan-02 16:54
protectorChristian Graus27-Jan-02 16:54 
GeneralRe: read from file Pin
Jamie Hale28-Jan-02 5:05
Jamie Hale28-Jan-02 5:05 
GeneralRe: read from file Pin
Christian Graus28-Jan-02 8:44
protectorChristian Graus28-Jan-02 8:44 
GeneralInstalling a callback between two applications Pin
Mr.Freeze27-Jan-02 15:52
Mr.Freeze27-Jan-02 15:52 
GeneralRe: Installing a callback between two applications Pin
27-Jan-02 16:09
suss27-Jan-02 16:09 
GeneralRe: Installing a callback between two applications Pin
Mr.Freeze27-Jan-02 17:47
Mr.Freeze27-Jan-02 17:47 
GeneralRe: Installing a callback between two applications Pin
27-Jan-02 18:39
suss27-Jan-02 18:39 
The reason why you cannot do this is because you cannot access the memory in the second process. If you call the callback function in process 1 with an address of a function that you determined from process 2, you will be accessing the data this is at the memory location in process 1. This will most likely result in a memory access error.

WIN32 allows each application to have their own completely independent address space. This is why you cannot match the memory from one process to another. Even if you could find the absolute or physical address of the function call to the redraw command in your second app, the OS would change this address out from under you. That is why it is nice to work with virtual memory addresses, the memory moving becomes transparent to the application programmer. This would not be an issue in WIN16 because all applications shared the same address space.

The reason why you can access the shared data segment of the DLL and modify the memory is because windows maps the shared data segment of the DLL into a memory mapped file.

Since you already have shared data, you may just want to set an update bit that the Rendering app can monitor in its idle state and determine if it is time to update.

kilowatt

Generalread from file Pin
marouane miftah el kheir27-Jan-02 15:27
marouane miftah el kheir27-Jan-02 15:27 
GeneralRandom Numbers :: C++ Pin
valikac27-Jan-02 15:00
valikac27-Jan-02 15:00 
GeneralRe: Random Numbers :: C++ Pin
Michael Dunn27-Jan-02 17:22
sitebuilderMichael Dunn27-Jan-02 17:22 
GeneralRe: Random Numbers :: C++ Pin
markkuk27-Jan-02 19:44
markkuk27-Jan-02 19:44 
GeneralRe: Random Numbers :: C++ Pin
valikac28-Jan-02 4:37
valikac28-Jan-02 4:37 
GeneralHelp with Win32, but its in the VB forum Pin
David Wengier27-Jan-02 14:53
David Wengier27-Jan-02 14:53 
Generalplease help me this is urgent Pin
borland27-Jan-02 14:50
borland27-Jan-02 14:50 
GeneralRe: please help me this is urgent Pin
27-Jan-02 15:13
suss27-Jan-02 15:13 
GeneralRe: please help me this is urgent Pin
Michael Dunn27-Jan-02 17:19
sitebuilderMichael Dunn27-Jan-02 17:19 
Questioninput reading? Pin
marouane miftah el kheir27-Jan-02 13:00
marouane miftah el kheir27-Jan-02 13:00 
AnswerRe: input reading? Pin
borland27-Jan-02 14:52
borland27-Jan-02 14:52 
Questionreturning arrays? Pin
marouane miftah el kheir27-Jan-02 11:18
marouane miftah el kheir27-Jan-02 11:18 
AnswerRe: returning arrays? Pin
Matt Gullett27-Jan-02 11:25
Matt Gullett27-Jan-02 11:25 
GeneralRe: returning arrays? Pin
Nemanja Trifunovic27-Jan-02 12:12
Nemanja Trifunovic27-Jan-02 12:12 
GeneralRe: returning arrays? Pin
Matt Gullett27-Jan-02 12:27
Matt Gullett27-Jan-02 12:27 
GeneralRe: returning arrays? Pin
alex.barylski27-Jan-02 19:56
alex.barylski27-Jan-02 19:56 
QuestionHow to move/copy a file!? Pin
Rickard Andersson2027-Jan-02 10:43
Rickard Andersson2027-Jan-02 10:43 

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.