MS IDL has syntax for specifying a defaultvalue
for parameters.
I tried to specify a default value for a function that accepts a VARIANT_BOOL
:
[id(42)] HRESULT Foo([in, defaultvalue(VARIANT_TRUE)] VARIANT_BOOL bar);
And got the following error message:
error MIDL2035 : constant expression expected
What is the correct syntax for specifying that the default value of bar
should be VARIANT_TRUE
?