title: How can I get Pascal Script to recognize the 'create' and 'free' functions when importing a custom class?
body: <p>I am having a problem with the example from this <a href="http://devcenter.remobjects.com/articles/?id=%7BB2CAB2FE-A831-452E-AF7A-6E2C6021D489%7D" rel="nofollow noreferrer">article</a>.  The article explains how to import your own classes so they can be called from a Pascal Script.  I am importing my custom class but cannot get Pascal Script to recognize the 'Create' and 'Free' functions.  </p>
  
  <p>My plugin:</p>
  
  <pre><code>TMyPsPlugin = class
    public
      procedure PrintMessage(const AMessage: String);
  end;
  
  procedure TMyPsPlugin.PrintMessage(const AMessage: String);
  begin
    ShowMessage(AMessage);
  end;
  </code></pre>
  
  <p>My app:</p>
  
  <pre><code>procedure TForm1.FormCreate(Sender: TObject);
  var
    Plugin: TPSPlugin;
  begin
    Plugin := TPSImport_MyPsPlugin.Create(Self);
    TPSPluginItem(ps.Plugins.Add).Plugin := Plugin;
  end;
  
  procedure TForm1.bCompileClick(Sender: TObject);
  begin
    ps.Script.Text := mScript.Text;
    if ps.Compile then
      begin
        if ps.Execute then
          ShowMessage('Done.')
        else
          ShowMessage('Execution Error: ' + Ps.ExecErrorToString);
      end
    else
      HandleError;
  end;
  </code></pre>
  
  <p>My Script:</p>
  
  <pre><code>program test;
  var
    Plugin: TMyPsPlugin;
  begin
    Plugin := TMyPsPlugin.Create;
    Plugin.PrintMessage('Hello');
    Plugin.Free;
  end.
  </code></pre>
  
  <p>Error Messages:</p>
  
  <pre><code>[Error] (5:25): Unknown identifier 'Create'
  [Error] (7:10): Unknown identifier 'FREE'
  </code></pre>