Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by Alexandre Paulino Sierra da Silv...
Wed, 14 May 2008 17:47
Indy 10 - Attachment
Author: Alexandre Paulino Sierra da Silv...
Date: Wed, 14 May 2008 17:47
Date: Wed, 14 May 2008 17:47
13 lines
1515 bytes
1515 bytes
I made my application in C++ Builder 6, now I'm trying to use C++ Builder 2007 and Indy 10. I have the follow line in my app "TIdAttachment(IdMessage->MessageParts, pdfFile )" to attach a file and send, it works fine in C++ Builder 6, but in C++ Builder 2007 with Indy 10 I get this error when I try to compile: "[BCC32 Error] UnitCadastroPedido.cpp(186): E2352 Cannot create instance of abstract class 'TIdAttachment'" Any help? Thank you and regards. Alexandre Paulino Sierra da Silva
Re: Indy 10 - Attachment
Author: Remy Lebeau (TeamB)
Date: Wed, 14 May 2008 18:05
Date: Wed, 14 May 2008 18:05
21 lines
1935 bytes
1935 bytes
"Alexandre Paulino Sierra da Silva" <alexandre.chokito@gmail.com> wrote in
message news:482b25c8@newsgroups.borland.com...
> I have the follow line in my app "TIdAttachment(IdMessage->MessageParts,
> pdfFile )" to attach a file and send, it works fine in C++ Builder 6, but
> in
> C++ Builder 2007 with Indy 10 I get this error when I try to compile:
> "[BCC32 Error] UnitCadastroPedido.cpp(186): E2352 Cannot create
> instance of abstract class 'TIdAttachment'"
BCB 6 shipped with Indy 8. TIdAttachment was changed in Indy 10 to be an
abstract base class. There are two descendants natively available in Indy
10 - TIdAttachmentFile and TIdAttachmentMemory - or you can write your own
custom descendants. In this particular case, you can use TIdAttachmentFile
as a direct replacement in your existing code, ie:
TIdAttachmentFile(IdMessage->MessageParts, pdfFile)
Gambit
Re: Indy 10 - Attachment
Author: Alexandre Paulino Sierra da Silv...
Date: Mon, 02 Jun 2008 12:16
Date: Mon, 02 Jun 2008 12:16
31 lines
2123 bytes
2123 bytes
It works fine.
Thank you Gambit
Alexandre
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escreveu na mensagem
news:482b2a22@newsgroups.borland.com...
"Alexandre Paulino Sierra da Silva" <alexandre.chokito@gmail.com> wrote in
message news:482b25c8@newsgroups.borland.com...
> I have the follow line in my app "TIdAttachment(IdMessage->MessageParts,
> pdfFile )" to attach a file and send, it works fine in C++ Builder 6, but
> in
> C++ Builder 2007 with Indy 10 I get this error when I try to compile:
> "[BCC32 Error] UnitCadastroPedido.cpp(186): E2352 Cannot create
> instance of abstract class 'TIdAttachment'"
BCB 6 shipped with Indy 8. TIdAttachment was changed in Indy 10 to be an
abstract base class. There are two descendants natively available in Indy
10 - TIdAttachmentFile and TIdAttachmentMemory - or you can write your own
custom descendants. In this particular case, you can use TIdAttachmentFile
as a direct replacement in your existing code, ie:
TIdAttachmentFile(IdMessage->MessageParts, pdfFile)
Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads