title: FindWindow does not find the a window
body: <p>I have a plan for make a simple trainer console with C++ but first step I've got problem with FindWindow()</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cstdlib&gt;
  #include &lt;windows.h&gt;
  #include &lt;winuser.h&gt;
  #include &lt;conio.h&gt;
  
  LPCTSTR WindowName = &quot;Mozilla Firefox&quot;;
  HWND Find = FindWindow(NULL,WindowName);
  int main(){
      if(Find)
      {
          printf(&quot;FOUND\n&quot;);
          getch();
      }
      else{
          printf(&quot;NOT FOUND&quot;);
          getch();
      }
  }
  </code></pre>
  <p>The above code I use to try whether the command FindWindow() but when I execute the output always show</p>
  <blockquote>
  <p>NOT FOUND</p>
  </blockquote>
  <p>I've replaced Character Set on property Project from</p>
  <blockquote>
  <p>Use Unicode Character Set</p>
  </blockquote>
  <p>to</p>
  <blockquote>
  <p>Use Multi-Byte Character Set</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>LPCTSTR</p>
  </blockquote>
  <p>to</p>
  <blockquote>
  <p>LPCSTR</p>
  </blockquote>
  <p>or</p>
  <blockquote>
  <p>LPCWSTR</p>
  </blockquote>
  <p>but the result always the same, I hope anyone can help me.</p>