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

C / C++ / MFC

 
AnswerRe: Copying a file Pin
Cedric Moonen5-Sep-08 22:12
Cedric Moonen5-Sep-08 22:12 
AnswerRe: Copying a file Pin
Perspx5-Sep-08 22:45
Perspx5-Sep-08 22:45 
QuestionThreads Problem Pin
Dhiraj kumar Saini5-Sep-08 19:23
Dhiraj kumar Saini5-Sep-08 19:23 
AnswerRe: Threads Problem Pin
Cedric Moonen5-Sep-08 22:09
Cedric Moonen5-Sep-08 22:09 
QuestionCPrintDialog::GetPrinterDC question Pin
followait5-Sep-08 17:28
followait5-Sep-08 17:28 
AnswerRe: CPrintDialog::GetPrinterDC question Pin
Rane5-Sep-08 19:01
Rane5-Sep-08 19:01 
QuestionCalling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett5-Sep-08 12:09
Ben Burnett5-Sep-08 12:09 
AnswerRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Garth J Lancaster5-Sep-08 14:23
professionalGarth J Lancaster5-Sep-08 14:23 
oohhh .. thats a hard one. Unless your executable exposes some sort of API I think you'd have to resort to using injection/hooking from the dll (which I presume is in another process) to access the functions in the executable, even then ...

Usually as Im sure you're painfully aware, a plugin system involves the executable 'discovering' its plugins, then possibly calling something within the plugin to say 'what do you expose/do', or has a narrowly defined interface, not the other way around ..

If it were me (and Ive been here before, and are about to venture in this space again), I would would have the exe expose its functions through an IPC or TCP/IP interface, presenting commands to a command interpreter built into the exe, but its hard to do that unless you build it from the ground up. My next app is going to have an inbuild mini-webserver in it for both input/output and control ..

Maybe you can research injection/hooking, the microsoft library 'detours' for example to see if that can help ... the danger with these (well, one of the dangers), is that the usage is tightly bound to your internals/classes ...

sorry, good luck

[edit] .. if it were just a matter of exposing global variables for instance, I'd be using a shared memory implementation [/edit]

'g'
GeneralRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett10-Sep-08 5:49
Ben Burnett10-Sep-08 5:49 
QuestionAfxMessageBox( ) in my DLL Pin
john john mackey5-Sep-08 12:01
john john mackey5-Sep-08 12:01 
AnswerRe: AfxMessageBox( ) in my DLL Pin
Perspx5-Sep-08 12:12
Perspx5-Sep-08 12:12 
GeneralRe: AfxMessageBox( ) in my DLL Pin
john john mackey5-Sep-08 12:25
john john mackey5-Sep-08 12:25 
QuestionShowing powers, cubes and squares in a console window Pin
toprogramminguy5-Sep-08 10:11
toprogramminguy5-Sep-08 10:11 
AnswerRe: Showing powers, cubes and squares in a console window Pin
David Crow5-Sep-08 10:21
David Crow5-Sep-08 10:21 
AnswerRe: Showing powers, cubes and squares in a console window Pin
Sauce!7-Sep-08 1:45
Sauce!7-Sep-08 1:45 
QuestionHelp! how to force the control to display the + even though the item does not have any child items inserted Pin
DavidLeeFromKunming5-Sep-08 9:35
DavidLeeFromKunming5-Sep-08 9:35 
QuestionRe: Help! how to force the control to display the + even though the item does not have any child items inserted Pin
David Crow5-Sep-08 10:11
David Crow5-Sep-08 10:11 
AnswerRe: Help! how to force the control to display the + even though the item does not have any child items inserted Pin
DavidLeeFromKunming5-Sep-08 18:06
DavidLeeFromKunming5-Sep-08 18:06 
AnswerRe: Help! how to force the control to display the + even though the item does not have any child items inserted Pin
Mark Salsbery6-Sep-08 8:29
Mark Salsbery6-Sep-08 8:29 
GeneralRe: Help! how to force the control to display the + even though the item does not have any child items inserted Pin
DavidLeeFromKunming6-Sep-08 16:48
DavidLeeFromKunming6-Sep-08 16:48 
QuestionMultiple Events Pin
thenutz725-Sep-08 9:26
thenutz725-Sep-08 9:26 
Questiondotted ip address to name? Pin
montiee5-Sep-08 9:06
montiee5-Sep-08 9:06 
QuestionRe: dotted ip address to name? Pin
David Crow5-Sep-08 10:19
David Crow5-Sep-08 10:19 
AnswerRe: dotted ip address to name? Pin
montiee5-Sep-08 10:48
montiee5-Sep-08 10:48 
Questionuse of "SECTION" within a hook dll ..? Pin
only_jack5-Sep-08 8:54
only_jack5-Sep-08 8:54 

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.