Click here to Skip to main content
15,904,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile Locking Pin
Imtiaz Murtaza5-Nov-07 2:09
Imtiaz Murtaza5-Nov-07 2:09 
AnswerRe: File Locking Pin
Daniel Kanev5-Nov-07 2:26
Daniel Kanev5-Nov-07 2:26 
AnswerRe: File Locking Pin
James R. Twine5-Nov-07 3:48
James R. Twine5-Nov-07 3:48 
AnswerRe: File Locking Pin
David Crow5-Nov-07 4:25
David Crow5-Nov-07 4:25 
GeneralRe: File Locking Pin
Imtiaz Murtaza5-Nov-07 4:27
Imtiaz Murtaza5-Nov-07 4:27 
GeneralRe: File Locking Pin
David Crow5-Nov-07 4:30
David Crow5-Nov-07 4:30 
QuestionJust a quick one Pin
thes3cr3t15-Nov-07 1:37
thes3cr3t15-Nov-07 1:37 
AnswerRe: Just a quick one Pin
Nishad S5-Nov-07 1:55
Nishad S5-Nov-07 1:55 
GeneralRe: Just a quick one Pin
thes3cr3t15-Nov-07 2:06
thes3cr3t15-Nov-07 2:06 
AnswerRe: Just a quick one Pin
Cedric Moonen5-Nov-07 2:00
Cedric Moonen5-Nov-07 2:00 
GeneralRe: Just a quick one Pin
thes3cr3t15-Nov-07 2:45
thes3cr3t15-Nov-07 2:45 
GeneralRe: Just a quick one[SOLVED] Pin
thes3cr3t110-Nov-07 22:59
thes3cr3t110-Nov-07 22:59 
QuestionCustom Database with jet engine and Dao MFC wrappers! Pin
padamraj5-Nov-07 1:37
padamraj5-Nov-07 1:37 
Questionvirtual address and real address Pin
zon_cpp5-Nov-07 1:10
zon_cpp5-Nov-07 1:10 
AnswerRe: virtual address and real address Pin
James R. Twine5-Nov-07 1:25
James R. Twine5-Nov-07 1:25 
   Well, you can use LoadLibrary(...) to load an executable into your address space.  If you know the relative offset of the code you are trying to execute, you should be able to calculate the offset after loading it into your address space (and knowing where it was loaded at).

   Getting the offset in the other running executable may be possible via injection or using CreateRemoteThread(...).  How to inject into running processes and/or use CreateRemoteThread(...) is a whole series of articles in itself.

   If the function is exported via an export table (yes, EXEs can export functions just like DLLs), you can just use GetProcAddress(...) after calling LoadLibrary(...), just like a normal DLL.

   Note that even though you will be running code in the other executable, you will not be able to share data easily between the two because they are running in completely separate address spaces.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>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!
See DeleteFXPFiles

QuestionCString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:06
Marimuthu.r5-Nov-07 1:06 
AnswerRe: CString to COleDateTime type. Pin
James R. Twine5-Nov-07 1:20
James R. Twine5-Nov-07 1:20 
AnswerRe: CString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:37
Marimuthu.r5-Nov-07 1:37 
QuestionHow to get execution time of a function in microsecs? Pin
shir_k5-Nov-07 0:24
shir_k5-Nov-07 0:24 
AnswerRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 0:52
ThatsAlok5-Nov-07 0:52 
GeneralRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:29
James R. Twine5-Nov-07 1:29 
GeneralRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 2:03
ThatsAlok5-Nov-07 2:03 
AnswerRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:35
James R. Twine5-Nov-07 1:35 
QuestionAPI for Protected o/s Files Pin
bholoo5-Nov-07 0:14
bholoo5-Nov-07 0:14 
QuestionAdmin gets access denied Pin
vipin_nvk5-Nov-07 0:10
vipin_nvk5-Nov-07 0:10 

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.