Calling a dll function inside a C++ program
<p>I have a created two new C++ projects. One of them is a C++ .dll project and the other is console application project.</p>

<p>For the dll program, here's the simple code (<strong>.cpp file</strong>):</p>

<pre><code>PIPESTOSPACES_API int npipesToSpaces=0;

PIPESTOSPACES_API int fnpipesToSpaces(void)
{
    return 42;
}
</code></pre>

<p>I have to call these dll functions and I am doing this through exporting the function from my C++ file, and implicit linking in my C++ console application. <br/>
It would be great if some could mention the steps on how to call these exported .dll function in the C++ console application. I referred <a href="http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9855/DLL-Tutorial-For-Beginners.htm" rel="nofollow">this</a> page to learn exporting the function etc.</p>

<p>EDIT:
I am currently using Visual C++  for all this stuff on Visual Studio 2010.</p>
