🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13679

Re: Send a mail with attachment

#13679
From: Ed Mulroy [TeamB]
Date: Sat, 27 Sep 2003 08:58
42 lines
2375 bytes
If you are going to use that then rewite it. .

For example:

---------------------
const char CSpecialChar[] = !@#$%^&*()_+{}|:<>?\";

bool CIsSpecialChar(char C, const char* specialchar)
{
// C String Method
    for (unsigned int i=0; i < strlen(specialchar); i++)
        if (C == *(specialchar + i))
            return true;

    return false;
}

---------------------

For a character not in the array that does a 20 item loop in which each
iteration calls strlen (perhaps hoping optimization will cover him on that)
and indexes into an array.  All that when a simple call to achieve that
which the standard function strchr  does.

He wrote it as dependent upon the VCL when it is not, adding an empty
constructor for an unneeded form and setting a property at the bottom, a
property of something not defined in the code shown and which is not part of
the functionality the code is supposed to illustrate.

A custom and unneeded header file is included, a header file whose contents
are not shown on that page.

.  Ed

> Rodolfo Frino wrote in message
> news:3f7545de@newsgroups.borland.com...
>
> I don't recommend ShellExecute. ShellExecute has a limit
> of 2 MB per e-mail, If you want e-mails bigger than 32 MB,
> have a look here
>
> http://www.geocities.com/rodolfofrino/OutlookExpressAuto.html
Technical Details
Message-ID: <3f755135@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f70794d@newsgroups.borland.com> <3f7545de@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,23d9e1242f297072
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-27 02:49:18 PST
From: "Ed Mulroy [TeamB]" <EdwardMulroy@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f70794d@newsgroups.borland.com> <3f7545de@newsgroups.borland.com>
Subject: Re: Send a mail with attachment
Date: Sat, 27 Sep 2003 04:58:21 -0400
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 206.228.162.80
Message-ID: <3f755135@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064653109 206.228.162.80 (27 Sep 2003 01:58:29 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail