title: How to add Open eVision library to a project in Microsoft Visual Studio for a C++ project
body: <p>I am trying to run a sample C++ project in Microsoft Visual Studio 2019. The sample file is generated using Open eVision Studio</p>
  
  <pre><code>// This cpp script file was created by Open eVision Studio.
  // Open eVision Studio (c)Euresys s.a. Belgium 2006.
  // Date : 9/3/2020 at 10:37.
  
  // This section contains the variable declarations
  
  #include "Open_eVision_2_10.h"
  using namespace Euresys::Open_eVision_2_10;
  
  using namespace std;
  EImageBW8 EBW8Image1; // EImageBW8 instance
  EImageBW8 EBW8Image2; // EImageBW8 instance
  EImageBW8 EBW8Image3; // EImageBW8 instance
  
  
  // This section contains the operations code
  
  try {
      EBW8Image1.Load("C:\\Users\\Public\\Documents\\Euresys\\Open eVision 2.10\\Sample Images\\EasyMatch\\Switch1.tif");
      EBW8Image2.Load("C:\\Users\\Public\\Documents\\Euresys\\Open eVision 2.10\\Sample Images\\EasyMatch\\Switch1.tif");
      EBW8Image3.SetSize(512, 512);
      // Make image black
      EasyImage::Oper(EArithmeticLogicOperation_Copy, EBW8(0), &amp;EBW8Image3);
      EasyImage::Threshold(&amp;EBW8Image2, &amp;EBW8Image3, 85);
      EasyImage::Threshold(&amp;EBW8Image2, &amp;EBW8Image3, 126);
      EasyImage::Threshold(&amp;EBW8Image2, &amp;EBW8Image3, 139);
  }
  catch(const EException&amp;){
     // Insert exception handling code here
  }
  </code></pre>
  
  <p>What I am trying to do is to run this in Microsoft Visual Studio 2019. I have created a <code>C++ Desktop application</code> and copy pasted the above code. In the project properties  C/C++ -> General -> Additional include directories as <code>C:\Program Files %28x86%29\Euresys\Open eVision 2.10\Include;</code>
  But error during build. Some of the error displayed.</p>
  
  <pre><code>Error (active)  E1696   cannot open source file "Open_eVision_2_10.h"   euresys_1   
  
  
  Error (active)  E0276   name followed by '::' must be a class or namespace name euresys_1   
  
  
  Error   C1083   Cannot open include file: 'Open_eVision_2_10.h': No such file or directory  euresys_1   
  
  Error (active)  E0020   identifier "EImageBW8" is undefined euresys_1   
  </code></pre>
  
  <p>The screen shot 
  <a href="https://i.stack.imgur.com/ynhEA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ynhEA.jpg" alt="enter image description here"></a></p>