title: Sharing variables between multiple Dlls in C++
body: <p>I need to share a variables (1000s) between 2 C++ Dlls. How should I do that? <br></p>
  
  <p><code>MyVariables.Dll</code> contains:</p>
  
  <pre><code>int a = 0;
  </code></pre>
  
  <p><code>ModifyMyVariables.Dll</code> contains:<br></p>
  
  <pre><code>extern int a;    
  a++; 
  // do more stuff with a;
  </code></pre>
  
  <p>What am i supposed to write in the following files?</p>
  
  <pre><code>myvariables.h
  myvariables.cpp
  ModifyMyVariables.h
  ModifyMyVariables.cpp
  </code></pre>