I'm trying to create an event source class for SLAB using C++. I've already tried creating one using C# so I'm really clueless on the following issue.
So basically I'm using the System::Diagnostic::Tracing EventSource class provided in .Net. However, when I extend the said EventSource class, it results to the following warning
warning C4538: 'cli::array<Type,dimension> ^': const/volatile qualifiers on this type are not supported
with
[
Type=System::Diagnostics::Tracing::EventSource::EventMetadata,
dimension=1
]
This diagnostic occurred while importing type 'System::Diagnostics::Tracing::EventSource ' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
So why does this warning shows up when I'm just extending a class and how can I remove it?
Also, could someone kindly show me an example of creating a SLAB EventSource in C++? I've searched all over the net yet I cannot find a single one.
I'm really a beginner with C++ especially with managed C++ so I'm really sorry if this question may seem stupid.