The provided Delphi code example already has this reference set up (it includes
Dpscad_TLB.pas) - you only need the steps below when starting a new project
from scratch.
The one file that is needed to use PC Automation through OLE, is "Dpscad_TLB.pas".
If Delphi is installed, but not PC Automation, then Delphi can't generate that file itself, and therefore the user has to manually place that file in each project, that needs to communicate with PC Automation.
Furthermore, it has to be inserted in the units USE-clause.
If PC Automation and Delphi is installed on the same machine, Delphi can create that file itself by following these simple steps:
Step 1: Select "Component -> Import Component..."
Step 2: On the "Personality, Framework and Platform" page, select "VCL for Delphi Win32", and click Next
Step 3: On the "Type of Component" page, select "Import a Type Library", and click Next
Step 4: On the "Registered Type Libraries" page, select the newest version available of "PCschematic ELAutomation Library", and click Next
Step 5: On the "Component" page, leave the default values as they are, and click Next
Step 6: On the "Create Unit" page, choose "Create Unit", and click Finish
If Delphi is installed, but not PC Automation, then Delphi can't generate that file itself, and therefore the user has to manually place that file in each project, that needs to communicate with PC Automation.
Furthermore, it has to be inserted in the units USE-clause.
If PC Automation and Delphi is installed on the same machine, Delphi can create that file itself by following these simple steps:
Step 1: Select "Component -> Import Component..."
Step 2: On the "Personality, Framework and Platform" page, select "VCL for Delphi Win32", and click Next
Step 3: On the "Type of Component" page, select "Import a Type Library", and click Next
Step 4: On the "Registered Type Libraries" page, select the newest version available of "PCschematic ELAutomation Library", and click Next
Step 5: On the "Component" page, leave the default values as they are, and click Next
Step 6: On the "Create Unit" page, choose "Create Unit", and click Finish