C++ Awesomium setting up listener problems -
i have odd error can't figure out. using awesomium(latest ver) c++ , want create listener connect js running program.
i have included /include , /lib folders correctly, including necessary headers
#include <awesomium/webcore.h> #include <awesomium/stlhelpers.h> #include <awesomium/jsobject.h> #include <awesomium/webviewlistener.h>
however, visual studio keeps saying there's wrong code
class browserlistener : public awesomium::webviewlistener { public: virtual void oncallback(awesomium::webview* caller, const std::wstring& objectname, const std::wstring& callbackname, const awesomium::jsarray& args) { // check starts here if (objectname == l"app" && callbackname == l"settings") { std::cout << "callback called " << args.size() << " args\n"; } } };
it underlines awesomium::webviewlistener red, saying: namespace awesomium, not class or struct name. namespace awesomium has no member class webviewlistener
this part can't solve, please :)
edit: clear, able use awesomium load sites intended. it's listener object refuses work
webviewlistener
namespace nested in awesomium
namespace, not class. change base class awesomium::webviewlistener::load
.
Comments
Post a Comment