Using OLE Automation to Control Foreign Applications - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Using OLE Automation to Control Foreign Applications

Description:

Creating an OLE Automation Controller. Launch Foreign Application. Execute any commands OLE Server provides. eg Word Macro commands. All from your application ... – PowerPoint PPT presentation

Number of Views:171
Avg rating:3.0/5.0
Slides: 9
Provided by: brianw71
Category:

less

Transcript and Presenter's Notes

Title: Using OLE Automation to Control Foreign Applications


1
Using OLE Automation to Control Foreign
Applications
  • Brian Watson
  • Desktop EDA
  • brian_at_desktop-eda.com.au
  • www.desktop-eda.com.au
  • 03 9481 2027

2
Creating an OLE Automation Controller
  • Launch Foreign Application
  • Execute any commands OLE Server provides
  • eg Word Macro commands
  • All from your application

3
Getting Started
  • Delphi demo OleAuto\Autoctrl
  • writes something from db into Word
  • Use variable type Variant
  • Call application commands via OLE object

4
Sample Code
5
3D Modelling Application
  • Application API via OLE Automation
  • Intitial Tests as easy as with Word
  • Became complicated
  • API use different for user use
  • problems with offsets and rotations
  • Needed Safe Arrays
  • these allow passing data to and from application

6
From This
7
To This
8
Summary
  • Use for quick and easy interface
  • Limited control
  • Slow execution
  • Use to prove concept before full committment
Write a Comment
User Comments (0)
About PowerShow.com