title: How to properly link DCL to AutoLisp?
body: <p>I'm trying to build a very basic AutoLisp interface. I'm a total beginner at this, so after failing to code this from scratch, I turned to studying DCL properly. I followed this tutorial:</p>
  
  <p><a href="http://www.afralisp.net/dialog-control-language/tutorials/dialog-boxes-and-autolisp-part-1.php" rel="nofollow">http://www.afralisp.net/dialog-control-language/tutorials/dialog-boxes-and-autolisp-part-1.php</a></p>
  
  <p>And I got the same error. AutoCAD basically exits from executing the function, as if the dcl file wasn't even there.</p>
  
  <p>I tried typing the address completely into it, but I think it should be able to work simply like linking HTML to images found in the same folder.</p>
  
  <p>Below you have my code:</p>
  
  <p>DCL:</p>
  
  <pre><code>samp1 : dialog {
      label = "Structural Holes";
  
      ok_cancel;
  }
  </code></pre>
  
  <p>Lisp:</p>
  
  <pre><code>(defun C:samp1()
    (setq dcl_id (load_dialog "samp1.dcl"))
    (if (not (new_dialog "samp1" dcl_id))
      (exit)
      )
  
    (action_tile
         "cancel"
         "(done_dialog)(setq userclick nil)"
         )
    (action_tile
      "accept"
      "(done_dialog)(setq userclick T))"
      )
  
    (start_dialog)
  
    (unload_dialog dcl_id)
  
    (princ)
  
   )
  
  (princ)
  </code></pre>
  
  <p>Thanks to anyone who will take the time to help me out with this. I'm starting to be quite desperate and it's my first and only autolisp project, so I have no experience whatsoever...</p>
  
  <p>LE: Please note that the dcl file and the lisp file are both found in the same folder, no other subfolders or anything else.</p>