title: Implementing EventoLog using C++
body: <p>I'm trying to implement EventLog using C++ using this <a href="https://msdn.microsoft.com/en-us/library/2awhba7a.aspx?cs-save-lang=1&amp;cs-lang=cpp#code-snippet-2" rel="nofollow noreferrer">example</a></p>
  
  <p>But on this line:</p>
  
  <pre><code>Console::WriteLine( "CreatingEventSource" );
  </code></pre>
  
  <p>Visual studio doesn't recognize the console object:</p>
  
  <p><a href="https://i.stack.imgur.com/IdMB5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IdMB5.png" alt="enter image description here"></a></p>
  
  <p>Any of you knows why Visual studio (2017) doesn't recognize the Console object?</p>