質問

Can I use const modifiers in IDL function definitions that get parsed by MIDL?

e.g.

    HRESULT TestFunctionCall(
        [in,string] const char *szParameter);

Or will that result in breakages somewhere down the track? It appears to make it through MIDL fine as far as the resulting _c.c and _s.c files go.

役に立ちましたか?

解決

The const modifier is part of the MIDL Language. Therefore you can use it at your interface definition.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top