🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdAttachmentFile generate: Type name expected

#747
From: Pawe� Kurzawa
Date: Mon, 01 Oct 2007 20:25
30 lines
1828 bytes


U�ytkownik "Pawe� Kurzawa" <pkurzawa@izissoft.pl> napisa� w wiadomo�ci 
news:47014cce@newsgroups.borland.com...
> 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
if I change this line and wrote:
TIdAttachmentFile *File = new 
TIdAttachmentFile(IdMessage1->MessageParts,"test.txt");
error is:
[BCC32 Error] UObsluga.cpp(617): E2451 Undefined symbol 'TIdAttachmentFile'

any concepts? :/ 
Technical Details
Message-ID: <47015795@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-mail
References: <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: "Pawe� Kurzawa" <pkurzawa@izissoft.pl>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <47014cce@newsgroups.borland.com>
Subject: Re: TIdAttachmentFile  generate: Type name expected
Date: Mon, 1 Oct 2007 22:25:48 +0200
Lines: 32
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; Response
X-Antivirus: avast! (VPS 000777-4, 2007-09-30), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 83.4.193.24
Message-ID: <47015795@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191270293 83.4.193.24 (1 Oct 2007 13:24:53 -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