Warning C4538 when using System::Diagnostics::Tracing::EventSource on c++

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.

链接地址: http://www.djcxy.com/p/90866.html

上一篇: 我可以使用EventLog或EventSource进行日志记录和跟踪吗?

下一篇: 在c ++上使用System :: Diagnostics :: Tracing :: EventSource时,警告C4538