🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #745

TIdAttachmentFile generate: Type name expected

#745
From: Pawe� Kurzawa
Date: Mon, 01 Oct 2007 19:39
18 lines
1398 bytes
Hello
I have bc++ 2007 and code like this:

IdMessage1->Body->Append("raport");
IdMessage1->Recipients->EMailAddresses = "a@a.pl";
IdMessage1->Subject = "Raport";
IdSMTP1->Password = "aaaa";
IdSMTP1->Username = "a@a.pl";
IdSMTP1->Host = "a.pl";
new TIdAttachmentFile(IdMessage1->MessageParts,"c:\tmp\a.txt");

in last line is compilation error:
[BCC32 Error] UObsluga.cpp(614): E2303 Type name expected

I havn't any idea, what's wrong...

Best Regards
Pawel 
Technical Details
Message-ID: <47014cce@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2acf1e8a459f88b5,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pawe� Kurzawa" <pkurzawa@izissoft.pl>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdAttachmentFile  generate: Type name expected
Date: Mon, 1 Oct 2007 21:39:50 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 000777-4, 2007-09-30), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 83.4.193.24
Message-ID: <47014cce@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191267534 83.4.193.24 (1 Oct 2007 12:38:54 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail