Error compiling after referencing a dll to an application
<p>I have created these projects separately and compiled successfully.</p>

<ol>
<li>MyApp - MyApp.exe</li>
<li>Mydll - Mydll.dll 'It has s dialoguebox.Simple.</li>
</ol>

<p>I want io include this dll to the app so that I can instantiate obj and call methods of the dll from the app. This is what I want to do.</p>

<h2>Steps so far</h2>

<p>I have put the name of lib in</p>

<blockquote>
  <p>Project Properties->Linker->Input->Addtional Dependencies </p>
  
  <p>Tools->Option->Project and Solution->VC++->Library Files</p>
</blockquote>

<p>put the path where the library files were (<strong>do I need to put the path of the debug folder where the dll/lib contains or I can copy the dll/lib to different folder and put this path?</strong>)</p>

<pre><code>Tools-&gt;Option-&gt;Project and Solution-&gt;VC++-&gt;Include files
</code></pre>

<p>put the path of the header file of the dll/lib</p>

<p>All this done!</p>

<hr>

<h2>Compiler error</h2>

<blockquote>
  <p>error C2065: 'IDD_DIALOG_CRINV' : undeclared identifier" IDD_DIALOG_CRINV is the dialogbox in the dll</p>
</blockquote>

<hr>

<p>I cannot figure out why this error occurs?is this something related to resource files? Do I need to reference somewhere the resource file?</p>

<p>After fix this, how can I create a instance of the dll and call the <code>messagebox</code>?</p>

<p>Is it something like below?
I create a event for <code>button_click</code> on the <code>application.exe</code>;</p>

<pre><code>void CApp::OnBnClickedCreateDLLDlg(){
    // TODO: Add your control notification handler code here
    CCReateDLLDlg test;
    test.domodal();
}
</code></pre>
