Home > Net >  Fundamental questions about cef3, friends to see
Fundamental questions about cef3, friends to see

Time:09-25

The following function OnCompletion is my HTTP request callback function, the callback function can obtain the data to the server to return to the data, the function of I don't have any problem to parse the data, my question is, after processing the server of the returned data, I want to open a new page, the follow-up should do, thank you!
Void PrintUrlReqCallback: : OnCompletion (CefURLRequest: : ErrorCode ErrorCode, const STD: : string& Data)
{
Char szLog [128]={0};
Sprintf_s (szLog, 128, "PrintUrlReqCallback: : OnCompletion, errorCode=% d, data. Len=% d, data: \ r \ n",
ErrorCode, data length ());
OutputDebugStringA (szLog);
CefRefPtr JsonObject=CefParseJSON (data, JSON_PARSER_ALLOW_TRAILING_COMMAS);
If (jsonObject - & gt; IsValid ())
{
CefRefPtr Dict=jsonObject - & gt; GetDictionary ();
CefString token=dict - & gt; Tk get string (" ");
CefString ret=dict - & gt; Ret get string (" ");
CefString MSG=dict - & gt; Get string (" MSG ");
//after parsing, open a new page, later don't know how to write, also can not find relevant example,,,,,,,,,,
}
Delete this.
}

CodePudding user response:

Have to know friends to see

CodePudding user response:

The question is how do you want to open, love?? _blank?

CodePudding user response:

I use this when they exit error, can you tell me what happened
  • Related