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?
       
sluffaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sluffaAuthor Commented:
Edited text of question.
0
chensuCommented:
COleVariant noArgs;
COleVariant vaURL(m_szURL);
COleVariant vaFlags(navNoHistory, VT_I4);
m_Browser.Navigate2(&vaURL, &vaFlags, &noArgs, &noArgs, &noArgs);
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sluffaAuthor Commented:
Thanks!!
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

sluffaAuthor Commented:
but, my compiler (VC6) errors out with an ambiguous call to overloaded function for the vaFlags declaration...
0
sluffaAuthor Commented:
fixed it with COleVariant vaFlags((long)navNoHistory,VT_I4)... I think
0
sluffaAuthor Commented:
Hmm... darn... items still showing up in history (IE5)
0
chensuCommented:
Try

COleVariant vaFlags((long)(navNoHistory | navNoWriteToCache), VT_I4);
0
sluffaAuthor Commented:
the problem is, I _do_ want to write to the cache.. is this impossible to do then?
0
chensuCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.