do you mean do the following code
extern "C" __declspec(dllexport) void CreateLkApp()
m_pMainWnd = &Dlg;
Then I'm guessing you just need to #include the Application and Dialog header files in SepResSampleDll.cpp.
Actually that didn't work, what else could I have missed?