I'm interested what's the correct way for implementating Separate Sub-Process Executable for Win32 for CefSimple project.
I created cefseparate.exe with the following content:
- Code: Select all
#include <windows.h>
#include <include/cef_app.h>
int WINAPI wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PWSTR lpCmdLine,
int nCmdShow)
{
CefMainArgs main_args(hInstance);
return CefExecuteProcess(main_args, nullptr, nullptr);
}
It was build with VS2019 compiler using v142 toolset+18362 SDK with /MD flags. Also executable was set as WIN32, not console. Both Debug + Release.
It was placed next to appropriate CefSimple executable.
Also I added a parameter to CefSimple settings:
- Code: Select all
CefString(&settings.browser_subprocess_path).FromASCII("cefseparate.exe");
Release build runs fine. But Debug build doesn't load URLs. What's the difference? What am I missing?
Is this thread related? https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=15670