There is this application that has a scenario like this:
SDI with CListView
MFC Extension DLL
Derived Dialog (base from BaseDialog)
I'm using dynamic loading to create an instance of the DeriveDialog and pass it to the BaseDialog so that I can manipulate the functions of DeriveDialog in the Main Application.
But this is the problem, how about if there is an event in the DeriveDialog that it needs to call a function in the Main Application?
I tried to pass a pointer of the main application to function inside the DerivedDialog (implemented also as virtual in the BaseDialog) but I'm having a link error when I call the function inside the main Application
Main Application: (Implemented as SDI with CListView)
TestView::Hello() - function
virtual void Test(TestView* m_pView)
DLL: (Implemented as MFC Extension DLL)
void Test(TestView* m_pView)
m_pView->Hello() - Linking error
I hope someone can help on my problem.