how to make default parameters for method?
COM
2
Posts
2
Posters
0
Views
1
Watching
-
can anyone show me how to make some parameter of a method as default. Like this: STDMETHOD(Test)(BSTR bsValue); how to make "bsValue" as a default parameter like in c++(Test(BSTR bsValue=NUU) Many many thx
For C|C++ clients there is no sense for this - they must always specify the parameter. Though MIDL has two keys to do it - [defaultvalue] and [optional]. The [optional] applies to the VARIANT parameter. The [defaultvalue] applies to other types. With best wishes, Vita