Click here to Skip to main content
16,004,458 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:19
FarPointer31-Mar-06 7:19 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:31
David Crow31-Mar-06 7:31 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:35
FarPointer31-Mar-06 7:35 
GeneralRe: Help with multi-sort Pin
Maximilien31-Mar-06 10:16
Maximilien31-Mar-06 10:16 
GeneralRe: Help with multi-sort Pin
Kurt _B31-Mar-06 7:23
Kurt _B31-Mar-06 7:23 
GeneralRe: Help with multi-sort Pin
David Crow31-Mar-06 7:38
David Crow31-Mar-06 7:38 
GeneralRe: Help with multi-sort Pin
FarPointer31-Mar-06 7:43
FarPointer31-Mar-06 7:43 
QuestionCallback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 5:48
b_p_smith31-Mar-06 5:48 
Probably a fairly common problem, but I'm having difficulty getting precisely the answer I need, so I'm asking a different way.
I have an MFC class (actually a dialog) in my app that I need to shift out to a DLL. There's a major product rearchitecture looming, so this is a short-term problem I need to solve. It doesn't have to be pretty, but it does need to be quick to implement.
Of course, to make my life difficult, the DLL will need to call a couple of class methods from back in the app. A typical example would be the dialog in the DLL has a Help button that, when pressed, launches a Help() method back in the app.

I'm thinking I make a "Callback" class, which exposes only the methods I need. The app creates one of these and sets up the "inside" objects it needs to know about, and the DLL itself only needs to know about this callback class. Is this the right approach?

At this point I'm stuck. I know I'm trying to hack a solution to a bad early design decision, but luckily this is only short term (but needs to be done).

Like I say, I've searched but so far haven't found any example code that deals with this specifically. Lots of "generic" stuff that mostly talks about C functions and "mentions" class callbacks. I could use a nudge in the right direction.

Brad.
AnswerRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:05
Kurt _B31-Mar-06 6:05 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 6:26
b_p_smith31-Mar-06 6:26 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:31
Kurt _B31-Mar-06 6:31 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 6:41
b_p_smith31-Mar-06 6:41 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 6:45
Kurt _B31-Mar-06 6:45 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 7:14
b_p_smith31-Mar-06 7:14 
GeneralRe: Callback to MFC App from MFC DLL Pin
Kurt _B31-Mar-06 7:21
Kurt _B31-Mar-06 7:21 
GeneralRe: Callback to MFC App from MFC DLL Pin
b_p_smith31-Mar-06 8:01
b_p_smith31-Mar-06 8:01 
QuestionAfxLoadLibrary problems Pin
netsharq31-Mar-06 5:39
netsharq31-Mar-06 5:39 
AnswerRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 5:49
David Crow31-Mar-06 5:49 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 6:19
netsharq31-Mar-06 6:19 
GeneralRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 7:07
David Crow31-Mar-06 7:07 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 7:23
netsharq31-Mar-06 7:23 
GeneralRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 7:42
David Crow31-Mar-06 7:42 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 8:00
netsharq31-Mar-06 8:00 
GeneralRe: AfxLoadLibrary problems Pin
David Crow31-Mar-06 8:09
David Crow31-Mar-06 8:09 
GeneralRe: AfxLoadLibrary problems Pin
netsharq31-Mar-06 8:30
netsharq31-Mar-06 8:30 

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.