Article View: borland.public.cppbuilder.internet.socket
Article #746Re: TIdAttachmentFile generate: Type name expected
From: Remy Lebeau (TeamB)
Date: Mon, 01 Oct 2007 20:23
Date: Mon, 01 Oct 2007 20:23
23 lines
1492 bytes
1492 bytes
"Pawe� Kurzawa" <pkurzawa@izissoft.pl> wrote in message
news:47014cce@newsgroups.borland.com...
> IdMessage1->Body->Append("raport");
Do not use the Body property if you are using the MessageParts collection.
Put the text into a TIdText object within the collection.
> new TIdAttachmentFile(IdMessage1->MessageParts,"c:\tmp\a.txt");
You have to use double slashes in string literals:
new TIdAttachmentFile(IdMessage1->MessageParts,"c:\\tmp\\a.txt");
> [BCC32 Error] UObsluga.cpp(614): E2303 Type name expected
You likely did not include IdAttachmentFile.hpp into your code:
#include "IdAttachmentFile.hpp"
Gambit
Technical Details
Message-ID:
<470157a1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47014cce@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2acf1e8a459f88b5 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47014cce@newsgroups.borland.com> Subject: Re: TIdAttachmentFile generate: Type name expected Date: Mon, 1 Oct 2007 13:23:55 -0700 Lines: 25 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: 75.83.29.61 Message-ID: <470157a1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1191270305 75.83.29.61 (1 Oct 2007 13:25:05 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail