Differences between [in, out] and [out, retval] in COM IDL definitions

前端 未结 2 668
栀梦
栀梦 2020-12-16 20:04

In some of the IDL I work with I have noticed that there are 2 conventions for marking return values in methods - [in, out] and [out, retval].

2条回答
  •  时光说笑
    2020-12-16 20:47

    Another difference is how this will show up in a PIA in .NET code.

    [out, ret] will show up as a return value in .NET.

    [out] will show up an argument on the method in .NET.

提交回复
热议问题