Error while opening a file inside a dll
<p>I am opening a file inside a dll code. I am using <code>fopen</code>. The pointer returned by <code>fopen</code> is NULL. What am I doing wrong? </p>

<pre><code>pFile = fopen("C:\\Users\\bruce\\Desktop\\log.txt","w");
</code></pre>

<p>I run the code with the debugger. The file gets created but the pointer returned by <code>fopen</code> is NULL which throws an exception when I use <code>fprintf</code></p>
