Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExecute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 4:27
MrKBA8-Oct-09 4:27 
AnswerRe: Execute a GUI dll (SDI MFC) from exe Pin
Code-o-mat8-Oct-09 5:06
Code-o-mat8-Oct-09 5:06 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 5:14
MrKBA8-Oct-09 5:14 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Code-o-mat8-Oct-09 5:22
Code-o-mat8-Oct-09 5:22 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 6:16
MrKBA8-Oct-09 6:16 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Code-o-mat8-Oct-09 9:14
Code-o-mat8-Oct-09 9:14 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 11:41
MrKBA8-Oct-09 11:41 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Code-o-mat8-Oct-09 21:39
Code-o-mat8-Oct-09 21:39 
Ok, i understand that, but without knowing some details about what you tried to do i can only guess...
So what i would first try is to simple load the DLL ( LoadLibrary ), and have an exported method -as i mentioned earlier- that brings up the windows and runs the message loop, localize this method (GetProcAddress), call it and let it run until it is done (the user dismisses the window, selects Exit from its menu, whatever...), and then exit. The EXE would sit in memory while the DLL's function is executed but i personally wouldn't care much. For the EXE i'd probably create a DIALOG BASED app in VS, remove the dialog and everything else that gets generated automatically by the app wizard, and in the applications's InitInstance i'd do the loading and executing and then return FALSE from it to exit. Or you could create a barebone project and do about the same just without any app class and the rest...it's up to you.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Richard MacCutchan8-Oct-09 22:36
mveRichard MacCutchan8-Oct-09 22:36 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Code-o-mat8-Oct-09 23:30
Code-o-mat8-Oct-09 23:30 
GeneralRe:@ Code-o-mat Execute a GUI dll (SDI MFC) from exe Pin
Richard MacCutchan8-Oct-09 23:56
mveRichard MacCutchan8-Oct-09 23:56 
AnswerRe: Execute a GUI dll (SDI MFC) from exe Pin
Richard MacCutchan8-Oct-09 5:06
mveRichard MacCutchan8-Oct-09 5:06 
GeneralRe: Execute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 5:13
MrKBA8-Oct-09 5:13 
GeneralRe: Execute a GUI dll (SDI MFC) from exe Pin
Richard MacCutchan8-Oct-09 6:02
mveRichard MacCutchan8-Oct-09 6:02 
GeneralRe:@ Richard MacCutchan Execute a GUI dll (SDI MFC) from exe Pin
MrKBA8-Oct-09 6:18
MrKBA8-Oct-09 6:18 
GeneralRe:@ Richard MacCutchan Execute a GUI dll (SDI MFC) from exe Pin
Richard MacCutchan8-Oct-09 6:28
mveRichard MacCutchan8-Oct-09 6:28 
AnswerRe: Execute a GUI dll (SDI MFC) from exe Pin
David Crow8-Oct-09 7:28
David Crow8-Oct-09 7:28 
Questionsending message from service Pin
_T("No name")8-Oct-09 0:56
_T("No name")8-Oct-09 0:56 
QuestionRe: sending message from service Pin
CPallini8-Oct-09 1:52
mveCPallini8-Oct-09 1:52 
AnswerRe: sending message from service Pin
Rolf Kristensen8-Oct-09 9:00
Rolf Kristensen8-Oct-09 9:00 
GeneralRe: sending message from service Pin
_T("No name")8-Oct-09 18:40
_T("No name")8-Oct-09 18:40 
QuestionWorker thread not working fine with CReportCtrl derived listctrl. Pin
Le@rner8-Oct-09 0:42
Le@rner8-Oct-09 0:42 
AnswerRe: Worker thread not working fine with CReportCtrl derived listctrl. Pin
CPallini8-Oct-09 1:47
mveCPallini8-Oct-09 1:47 
AnswerRe: Worker thread not working fine with CReportCtrl derived listctrl. Pin
David Crow8-Oct-09 2:12
David Crow8-Oct-09 2:12 
QuestionExcel::Range Pin
MsmVc7-Oct-09 23:39
MsmVc7-Oct-09 23:39 

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.