Article View: borland.public.cppbuilder.internet.socket
Article #1952Re: Copy TIdMessage Object
From: Remy Lebeau (TeamB)
Date: Mon, 18 Sep 2006 16:08
Date: Mon, 18 Sep 2006 16:08
21 lines
1754 bytes
1754 bytes
"Siddharth" <sidharth@cosmos-call-center.com> wrote in message news:450e7ed4$1@newsgroups.borland.com... > I want make a copy of TIdMessage and retain the copy > even after the original obec t gets deleted. Like with any other VCL component, there is no direct way to make a copy of an object from one instance to another. If you only care about the published properties, then you can use the Read/WriteComponent() method of TStream to stream a DFM representation of an object from one instance to another. Otherwise, you will just have to copy the desired property values one at a time in your own code. > I couldn't find copy constructor which could do job for me. There are no copy constructors in any VCL component. The VCL is written in Pascal, and Delphi does not use copy constructors. That is a C++ idiom. Gambit
Technical Details
Message-ID:
<450ec51b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<450e7ed4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7f460e276167209a X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <450e7ed4$1@newsgroups.borland.com> Subject: Re: Copy TIdMessage Object Date: Mon, 18 Sep 2006 09:08:54 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <450ec51b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158595867 69.169.4.232 (18 Sep 2006 09:11:07 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail