Can I use constant modifiers in IDL function definitions?
Can I use constant modifiers in IDL function definitions that are processed through MIDL?
eg.
HRESULT TestFunctionCall(
[in,string] const char *szParameter);
Or will it lead to breakdowns somewhere along the track? This appears to be done through MIDL until the _c.c and _s.c files are retrieved.
+3
source to share
1 answer
The modifier const
is part of the MIDL language . Therefore, you can use it when defining an interface.
+4
source to share