Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/237.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ PHP桌面和CEF崩溃加载程序()_Php_C++_Desktop_Chromium Embedded_Phpdesktop - Fatal编程技术网

C++ PHP桌面和CEF崩溃加载程序()

C++ PHP桌面和CEF崩溃加载程序(),php,c++,desktop,chromium-embedded,phpdesktop,Php,C++,Desktop,Chromium Embedded,Phpdesktop,我在PHP桌面上添加了一个菜单栏,在我的脚本中有如下链接 在C++代码中,我使用WieldPoC case IDM_ACCOUNT: CefWindowInfo windowInfo; CefBrowserSettings browser_settings; CefRefPtr<CefBrowser> cefBrowser; CefRefPtr<CefFrame> frame = cefBrowser-&

我在PHP桌面上添加了一个菜单栏,在我的脚本中有如下链接

<>在C++代码中,我使用WieldPoC

case IDM_ACCOUNT:
        CefWindowInfo windowInfo;
        CefBrowserSettings browser_settings;

        CefRefPtr<CefBrowser> cefBrowser;
        CefRefPtr<CefFrame> frame = cefBrowser->GetMainFrame();

        std::string startupURL = "http://127.0.0.1:9990/account/";

        frame->LoadURL(startupURL);

        break;

当我从应用程序中的菜单mainBrowser中选择任何内容以转到此URL时,我的代码崩溃。

cefBrowser变量包含空的cefBrowser对象。请使用以下代码:

//浏览器变量已在WindowProc的main.cpp中定义 浏览器=GetBrowserWindowhwnd; 如果浏览器-&浏览器->获取浏览器{ CefRefPtr frame=browser->GetCefBrowser->GetMainFrame; std::string startupURL=http://127.0.0.1:9990/account/; 框架->加载URL; }
cefBrowser变量包含空的cefBrowser对象。请使用以下代码:

//浏览器变量已在WindowProc的main.cpp中定义 浏览器=GetBrowserWindowhwnd; 如果浏览器-&浏览器->获取浏览器{ CefRefPtr frame=browser->GetCefBrowser->GetMainFrame; std::string startupURL=http://127.0.0.1:9990/account/; 框架->加载URL; }