I want to read a Javascript value from the page, but how?
std::string jscript("[appdata]");
JSValue value = view_->web_view()->ExecuteJavascriptWithResult(WSLit(jscript.c_str()), WSLit(""));
JSArray& arr = value.ToArray();
std::string appdata = arr[0].ToString;
When I try to use this I get Awesomium::JSValue::ToString: non-standard syntax; use '&' to create a pointer to member
tbh I have no idea where to put &
My C++ is rather rusty but don't you need to add parentheses at the end?
As it stands, the code seems to be trying to get a pointer to a member function ToString and assign it to std::string variable.