Error with compilation when try to set cache_path

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Error with compilation when try to set cache_path

Postby jakaw » Mon Mar 25, 2013 1:50 pm

I got this:

Code: Select all
 Error 2 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'CefStringBase<traits>' (or there is no acceptable conversion)


When I'm trying set the cache_path using this:

Code: Select all
CefSettings.cache_path = CefString("%USERPROFILE%\\AppData\Local\\Cache");


How do I set the cache_path?
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm

Re: Error with compilation when try to set cache_path

Postby magreenblatt » Mon Mar 25, 2013 2:41 pm

Code: Select all
CefString(&settings.cache_path).FromASCII("c:\\temp\\cache");

It won't automatically expand environment variables, you need to do that yourself before setting the value.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 200 guests