title: How to open a file in solution directory in Visual Studio c++?
body: <p>I would like to open a file in the solution directory so that whenever i move the whole project file, It'll work.</p>
  
  <p>I'm currently using code ! as shown below and when i tried to use code 2, it fails.
  How do i do this?</p>
  
  <p><strong>Code 1:</strong></p>
  
  <pre><code>IplImage *src=cvLoadImage("C:\\Documents\\Visual Studio 2008\\Project1\\ABC.jpg"); //A function that load image
  </code></pre>
  
  <p><strong>Code 2:</strong> </p>
  
  <pre><code>`IplImage *src=cvLoadImage("$(SolutionDir)/ABC.jpg"); //A function that load image
  </code></pre>