views:

16

answers:

1

I am trying to use BrowserNavConstants for .Navigate2 flags, but I dont know how to combine more than one in the same variant for c++. On VB i would use

navNoHistory + navNoReadFromCache + navNoWriteToCache

or

Flags := NavNoHistory or NavNoReadFromCache or NavNoWriteToCache or NavAllowAutosearch;

for delphi, but how should I do it on c++?

A: 

Normally you'd combine flags with the bitwise OR operator ('|') for C++; does this not work here?

Eg:

Flag = Value1 | Value2 | Value3;
Nick
But how do i create a variant with type VT_I4 or VT_I2 and assign that in c++?
gtilx
This compiles fine, V_VT(
gtilx