title: Hardcoding the resources in application
body: <p>I have some code which shows a simple dialog box and handles user action (written using plain WinAPI). </p>
  
  <pre><code>// Display dialog and handle user action
  LRESULT choice = DialogBoxParam(NULL, MAKEINTRESOURCE(AP_IDD_DIALOG), NULL, (DLGPROC)DialogCallback, NULL);
  </code></pre>
  
  <p>Is there any way to <strong>hardcode</strong> the resource file <code>dialog.rc</code>, which is used to build the dialog ?<em>(I would like to get rid of <code>.rc</code> files and I'm pretty sure there is a way, yet I don't know what it is :)</em></p>
  
  <p><strong>Edit</strong></p>
  
  <p>Also, does someone have any ideas on converting existing <code>.rc</code> files into hardcoded resources? Is this possible?</p>