title: Getting LNK2019 and LNK1120 even on a simple code
body: <p>I decided to learn C++ DirectX, but whenever I compile/debug a code, even the simplest ones, i get the LNK2019: unresolved external symbol _WinMain@ 16 referenced in function "int __cdecl_main(void)" (?invoke_main@@YAHXZ) error and LNK1120.</p>
  
  <p>I tested two different codes, one with class and other just int function alone:</p>
  
  <pre><code>#pragma once
  
  class Main
  {
  public:
      Main();
      ~Main();
  };
  
  Main::Main(int x)
  {
  
  }
  
  Main::~Main()
  {
  
  }
  
  int example()
  {
      return 0;
  }
  </code></pre>