Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
swdev:howto:develop_com_components_and_automation [2009/10/06 11:31] smayr |
swdev:howto:develop_com_components_and_automation [2009/11/05 11:12] (current) smayr |
||
---|---|---|---|
Line 78: | Line 78: | ||
procedure TfrmClientMain.btnLaunchSvrClick(Sender: | procedure TfrmClientMain.btnLaunchSvrClick(Sender: | ||
begin | begin | ||
- | svr := CoMySvr.Create(); | + | |
+ | svr := CoMySvr.Create(); | ||
+ | end; | ||
if Assigned(svr) then begin | if Assigned(svr) then begin | ||
btnGetSvrVersion.Enabled := True; | btnGetSvrVersion.Enabled := True; | ||
Line 91: | Line 93: | ||
== Wrapping an Existing Application Functionality in an Automation Object == | == Wrapping an Existing Application Functionality in an Automation Object == | ||
+ | Especially use this method for Out-of-process automation servers: | ||
* Open an existing Delphi application project. | * Open an existing Delphi application project. | ||
* Select New > ActiveX > Automation Object. | * Select New > ActiveX > Automation Object. | ||
Line 98: | Line 101: | ||
* Select '' | * Select '' | ||
* Register the COM Server. | * Register the COM Server. | ||
- | * Select Run > Register ActiveX Server. | + | |
- | * Setup project to auto register server, to avoid littering the Windows Registry while developing. | + | |
- | * Select Project > Options > Linker > Auto register type library. | + | * Setup project to auto register server, to avoid littering the Windows Registry while developing. |
+ | * Select Project > Options > Linker > Auto register type library. | ||
+ | * Register from command line: < | ||
+ | * Out-of-process (EXE) automation server: | ||
+ | * To register, run this from command line: < | ||
+ | * To unregister, run this from command line: < | ||
== Linking Multiple Clients to a Single Instance of a COM Object == | == Linking Multiple Clients to a Single Instance of a COM Object == | ||
Line 355: | Line 363: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |