Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed Help - Pointers Pin
pjama13-Feb-06 23:43
pjama13-Feb-06 23:43 
AnswerRe: Need Help - Pointers Pin
BadKarma13-Feb-06 23:52
BadKarma13-Feb-06 23:52 
AnswerRe: Need Help - Pointers Pin
Naveen14-Feb-06 0:10
Naveen14-Feb-06 0:10 
GeneralRe: Need Help - Pointers Pin
toxcct14-Feb-06 0:15
toxcct14-Feb-06 0:15 
GeneralRe: Need Help - Pointers Pin
pjama14-Feb-06 0:16
pjama14-Feb-06 0:16 
GeneralRe: Need Help - Pointers Pin
toxcct14-Feb-06 0:36
toxcct14-Feb-06 0:36 
GeneralRe: Need Help - Pointers Pin
pjama14-Feb-06 1:18
pjama14-Feb-06 1:18 
AnswerRe: Need Help - Pointers Pin
James R. Twine14-Feb-06 4:45
James R. Twine14-Feb-06 4:45 
   The function in the DLL does not have a real address until that DLL is loaded into your processes address space.  Since a normal DLL cannot be reliably forced into a specific address (it may collide with an already-loaded DLL's load address), you cannot presume what the function's address will be.

   Your second program, B, will have to load the DLL into its address space in order to get a valid address for the function.


   Going the hack route, you may be able to directly allocate virtual memory in process B, copy the actual code from the function from process A to process B (by some other means), place it into the allocated buffer, set the protection on the buffer to PAGE_EXECUTE_READ, create a suitable function pointer and set it to the address of the buffer, and try to execute it.

   -But you are going to have to find out further details about that route on your own...! Smile | :)

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
Questiondrwtsn32 - not working? Pin
rrrado13-Feb-06 23:11
rrrado13-Feb-06 23:11 
JokeRe: drwtsn32 - not working? Pin
rrrado14-Feb-06 1:17
rrrado14-Feb-06 1:17 
QuestionNeed Help--How to implement a Find Target application? Pin
sandakith13-Feb-06 22:40
sandakith13-Feb-06 22:40 
AnswerRe: Need Help--How to implement a Find Target application? Pin
Naveen13-Feb-06 22:44
Naveen13-Feb-06 22:44 
AnswerRe: Need Help--How to implement a Find Target application? Pin
Malli_S13-Feb-06 22:53
Malli_S13-Feb-06 22:53 
GeneralRe: Need Help--How to implement a Find Target application? Pin
toxcct13-Feb-06 22:57
toxcct13-Feb-06 22:57 
GeneralRe: Need Help--How to implement a Find Target application? Pin
ThatsAlok14-Feb-06 22:03
ThatsAlok14-Feb-06 22:03 
GeneralRe: Need Help--How to implement a Find Target application? Pin
toxcct14-Feb-06 22:08
toxcct14-Feb-06 22:08 
GeneralRe: Need Help--How to implement a Find Target application? Pin
sandakith14-Feb-06 16:15
sandakith14-Feb-06 16:15 
Questionhelp with DWORD Pin
Waldermort13-Feb-06 21:49
Waldermort13-Feb-06 21:49 
AnswerRe: help with DWORD Pin
toxcct13-Feb-06 22:01
toxcct13-Feb-06 22:01 
GeneralRe: help with DWORD Pin
Waldermort13-Feb-06 22:08
Waldermort13-Feb-06 22:08 
GeneralRe: help with DWORD Pin
ThatsAlok14-Feb-06 22:01
ThatsAlok14-Feb-06 22:01 
QuestionEdit box selection color Pin
Naveen13-Feb-06 20:36
Naveen13-Feb-06 20:36 
AnswerRe: Edit box selection color Pin
James Brown13-Feb-06 21:42
James Brown13-Feb-06 21:42 
AnswerRe: Edit box selection color Pin
Ganesh_T13-Feb-06 22:16
Ganesh_T13-Feb-06 22:16 
GeneralRe: Edit box selection color Pin
Naveen13-Feb-06 22:27
Naveen13-Feb-06 22: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.