extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { // call shared/exported WinMain return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); }
// Point of Interest: A new entry point to expose your MFCLegacyApp-as-DLL to the Launcher int StartMyLegacyMFCApp(HINSTANCE hInstance, HINSTANCE hPrevInstance, _In_ LPTSTR lpCmdLine, int nCmdShow) { return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); }