I have a runtimeclass that I would like to add an enum to. I have tried the following syntax as suggested by the MSDN documentation here: https://learn.microsoft.com/en-ca/uwp/midl-3/intro
namespace my_project
{
runtimeclass my_rt_class
{
enum my_enum
{
first = 0,
second = 1
};
}
}
However I get the following error from MIDL:
error MIDL2025: [msg]syntax error [context]: expecting an identifier near ";"
Whats the correct syntax for this? I am using version 10.0.17763.0
of the windows SDK.