sluffa
asked on
navNoHistory in CWebBrowser2
COleVariant noArgs;
m_Browser.Navigate2((COleV ariant)m_s zURL,(COle Variant)(l ong)navNoH istory, &noArgs,&noArgs,&noArgs);
is not working (items are still inserted into the IE history list)
How do I convert the navNoHistory to a COleVariant successfully?
m_Browser.Navigate2((COleV
is not working (items are still inserted into the IE history list)
How do I convert the navNoHistory to a COleVariant successfully?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!!
ASKER
but, my compiler (VC6) errors out with an ambiguous call to overloaded function for the vaFlags declaration...
ASKER
fixed it with COleVariant vaFlags((long)navNoHistory ,VT_I4)... I think
ASKER
Hmm... darn... items still showing up in history (IE5)
Try
COleVariant vaFlags((long)(navNoHistor y | navNoWriteToCache), VT_I4);
COleVariant vaFlags((long)(navNoHistor
ASKER
the problem is, I _do_ want to write to the cache.. is this impossible to do then?
I think navNoHistory should work. Anyway, you might want to have a look at the Persistent URL Cache Functions.
http://msdn.microsoft.com/workshop/c-frame.htm?942613546955#/workshop/networking/wininet/overview/cache.asp
You can use the GetUrlCacheEntryInfo function to see if they are History entries (URLHISTORY_CACHE_ENTRY) and use DeleteUrlCacheEntry to delete them.
http://msdn.microsoft.com/workshop/c-frame.htm?942613546955#/workshop/networking/wininet/overview/cache.asp
You can use the GetUrlCacheEntryInfo function to see if they are History entries (URLHISTORY_CACHE_ENTRY) and use DeleteUrlCacheEntry to delete them.
ASKER