Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overloading left-shift operator to output to stringstream [modified] Pin
Sauce!8-Oct-09 17:18
Sauce!8-Oct-09 17:18 
AnswerRe: overloading left-shift operator to output to stringstream Pin
David Crow9-Oct-09 4:42
David Crow9-Oct-09 4:42 
Questiondata access Pin
thangvel8-Oct-09 6:14
thangvel8-Oct-09 6:14 
AnswerRe: data access Pin
Rajesh R Subramanian8-Oct-09 6:37
professionalRajesh R Subramanian8-Oct-09 6:37 
GeneralRe: data access Pin
kilt8-Oct-09 23:18
kilt8-Oct-09 23:18 
QuestionUsing TCHAR and char array Pin
dipuks8-Oct-09 6:09
dipuks8-Oct-09 6:09 
AnswerRe: Using TCHAR and char array [modified] Pin
CPallini8-Oct-09 6:14
mveCPallini8-Oct-09 6:14 
GeneralRe: Using TCHAR and char array Pin
Richard MacCutchan8-Oct-09 6:25
mveRichard MacCutchan8-Oct-09 6:25 
GeneralRe: Using TCHAR and char array Pin
dipuks8-Oct-09 6:43
dipuks8-Oct-09 6:43 
GeneralRe: Using TCHAR and char array Pin
CPallini8-Oct-09 7:50
mveCPallini8-Oct-09 7:50 
GeneralRe: Using TCHAR and char array Pin
Richard MacCutchan8-Oct-09 8:29
mveRichard MacCutchan8-Oct-09 8:29 
GeneralRe: Using TCHAR and char array Pin
dipuks8-Oct-09 6:26
dipuks8-Oct-09 6:26 
GeneralRe: Using TCHAR and char array Pin
Richard MacCutchan8-Oct-09 6:55
mveRichard MacCutchan8-Oct-09 6:55 
GeneralRe: Using TCHAR and char array Pin
Rajesh R Subramanian8-Oct-09 7:02
professionalRajesh R Subramanian8-Oct-09 7:02 
GeneralRe: Using TCHAR and char array Pin
Richard MacCutchan8-Oct-09 7:12
mveRichard MacCutchan8-Oct-09 7:12 
AnswerRe: Using TCHAR and char array Pin
Rajesh R Subramanian8-Oct-09 7:00
professionalRajesh R Subramanian8-Oct-09 7:00 
GeneralRe: Using TCHAR and char array Pin
dipuks8-Oct-09 7:56
dipuks8-Oct-09 7:56 
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. <

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.