Link to home
Start Free TrialLog in
Avatar of sluffa
sluffa

asked on

navNoHistory in CWebBrowser2

COleVariant noArgs;
m_Browser.Navigate2((COleVariant)m_szURL,(COleVariant)(long)navNoHistory, &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?
       
Avatar of sluffa
sluffa

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sluffa

ASKER

Thanks!!
Avatar of sluffa

ASKER

but, my compiler (VC6) errors out with an ambiguous call to overloaded function for the vaFlags declaration...
Avatar of sluffa

ASKER

fixed it with COleVariant vaFlags((long)navNoHistory,VT_I4)... I think
Avatar of sluffa

ASKER

Hmm... darn... items still showing up in history (IE5)
Try

COleVariant vaFlags((long)(navNoHistory | navNoWriteToCache), VT_I4);
Avatar of sluffa

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.