OK, I made a new app, then added a new Automation Object, and it made
this
in project1_TLB.pas:
class function CoMyObject.Create: IMyObject;
begin
Result := CreateComObject(Class_MyObject) as IMyObject;
end;
class function CoMyObject.CreateRemote(const MachineName: string):
IMyObject;
begin
Result := CreateRemoteComObject(MachineName, Class_MyObject) as
IMyObject;
end;
:) Delphi 4 is better tho :)
Nic.
Jeremy Coulter wrote:
>
> I am res. new to COM in Delphi 3 (i.e. only did my first COM obj. last
> night) so where do I do this "Create" thing ?
>
> Thansk, Jeremy Coulter
>
> -----Original Message-----
> From: Nic Wise [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 20, 1999 14:26
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: DCOM in Delphi
>
> Should be - you use createRemote(machine name) instead of Create() I
> think. Look at the bottom of the created unit and see whats there - I no
> longer have D3 on any machine, otherwise I'd check.
>
> D4 is another matter. I _know_ it does it, 'cos I've used it. And it
> works nice. (well, exactly the same as any other com object - just
> specify the machine name :) )
>
> Nic.
>
> Jeremy Coulter wrote:
> >
> > Hi all. Is it Poss. to do DCOM in Delphi 3 ?
> >
> > Cheers,
> >
> > Jeremy Coulter
> > Software Developer
> > Application Development Centre
> > Compaq Computer New Zealand Ltd.
> >
> > Phone: 64 3 371 5761
> > Fax: 64 3 371 5747
> > E-mail: [EMAIL PROTECTED]
> >
> >
> ---------------------------------------------------------------------------
> > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> > Website: http://www.delphi.org.nz
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz