Click here to Skip to main content
16,016,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrapping output from a DOS program Pin
Paul Barrass5-May-02 4:35
Paul Barrass5-May-02 4:35 
Generaldll global variables Pin
Aviv Halperin5-May-02 4:27
Aviv Halperin5-May-02 4:27 
GeneralRe: dll global variables Pin
Tom Archer5-May-02 4:35
Tom Archer5-May-02 4:35 
GeneralRe: dll global variables Pin
Aviv Halperin5-May-02 5:13
Aviv Halperin5-May-02 5:13 
GeneralRe: dll global variables Pin
Tom Archer5-May-02 6:19
Tom Archer5-May-02 6:19 
GeneralRe: dll global variables Pin
Joel Lucsy6-May-02 5:42
Joel Lucsy6-May-02 5:42 
GeneralRe: dll global variables Pin
Tom Archer6-May-02 14:06
Tom Archer6-May-02 14:06 
GeneralRe: dll global variables Pin
Joel Lucsy6-May-02 14:39
Joel Lucsy6-May-02 14:39 
The point, however, is that this problem can manifest itself without a manual REBASE. Say two dlls have not been rebased and are loaded automatically by the system and by themselves would load into the same memory locations. If your dll is loaded second then the shared segment won't be effective.
This problem can be avoided by smartly rebasing your dll itself into a "safe" area, but there are no guarantees. If you know it's always "your" executable that loads it, or that you know what dlls the target executable will load, then you're all set. Global hooks from dlls have a greater chance of remapped since you can't know all the executables that it might be loaded into.
Now, I'm not saying don't use shared memory segments. But I'm just trying to keep everyone informed of the issues.

Joel Lucsy (jjlucsy@ameritech.net)

GeneralRe: dll global variables Pin
Tom Archer6-May-02 14:49
Tom Archer6-May-02 14:49 
GeneralProgramatically simulating menu selection Pin
5-May-02 3:19
suss5-May-02 3:19 
GeneralRe: Programatically simulating menu selection Pin
l a u r e n5-May-02 4:04
l a u r e n5-May-02 4:04 
GeneralRe: Programatically simulating menu selection Pin
5-May-02 4:21
suss5-May-02 4:21 
GeneralCleaning up _Restore directory Pin
Hyien5-May-02 3:14
Hyien5-May-02 3:14 
GeneralRe: Cleaning up _Restore directory Pin
Michael Dunn5-May-02 8:00
sitebuilderMichael Dunn5-May-02 8:00 
GeneralRe: Cleaning up _Restore directory Pin
Hyien6-May-02 3:15
Hyien6-May-02 3:15 
GeneralStop Multiple Instances Pin
Peter Liddle5-May-02 2:45
Peter Liddle5-May-02 2:45 
GeneralRe: Stop Multiple Instances Pin
User 66585-May-02 3:25
User 66585-May-02 3:25 
GeneralRe: Stop Multiple Instances Pin
Mazdak5-May-02 3:54
Mazdak5-May-02 3:54 
GeneralRe: Stop Multiple Instances Pin
Nish Nishant5-May-02 4:46
sitebuilderNish Nishant5-May-02 4:46 
GeneralRe: Stop Multiple Instances Pin
Ravi Bhavnani6-May-02 14:25
professionalRavi Bhavnani6-May-02 14:25 
Generalhelp me please. Pin
Angel Kid5-May-02 2:19
Angel Kid5-May-02 2:19 
GeneralRe: help me please. Pin
Anders Molin5-May-02 3:28
professionalAnders Molin5-May-02 3:28 
GeneralRe: help me please. Pin
l a u r e n5-May-02 4:01
l a u r e n5-May-02 4:01 
GeneralRe: help me please. Pin
Angel Kid5-May-02 6:19
Angel Kid5-May-02 6:19 
GeneralRe: help me please. Pin
Paul M Watt5-May-02 6:27
mentorPaul M Watt5-May-02 6:27 

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.