Start CWinApp based app from a different DLL
Hi,
I am having a MFC-based UI app, that I want to initialize and run from a seperate dll, specifically from a Catch2 TEST_CASE.
I tried to export it and also exported theApp, linking statically, dynamically, calling AfxWinInit and wasted many hours with no success.
Errors ranging from pThread is nullptr to m_pszappnam is nullptr and at the end of the day I couldn't even compile it because there were many undefined or double defined references.
What is the correct way to perform:
InitApplication()
InitInstance()
RunInstancer()
from a different dll?
Thanks in advance