🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send a mail with attachment

#13609
From: Remy Lebeau (TeamB)
Date: Mon, 29 Sep 2003 18:19
23 lines
2464 bytes
"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message
news:3f782a24@newsgroups.borland.com...
> For what I can see from the code you posted (and I haven't tested it)
> is that it is considerably more complex than the keybd_event()
> based code

Not too much so.  The most difficult part is the IE instance, since it is
not a standard edit field and so has to be treated as an actual web browser,
which is essental is anyway.  I just threw in a few extras as well, such as
the Sleep() loop in FindNewMessageWnd().  I could have just called
Sleep(5000) and not looped at all, but I wanted the code to return the HWND
as soon as possible so the message window was onscreen as little amount of
time as needed.  As for the other helper functions, I could have just
inlined the code directly into Button1Click(), but then it would have gotten
a little ugly, so I broke the code out for easier reading.  I suppose the
functions themselves could be declared as 'inline', then there wouldn't be
any extra overhead in the CPU jumping around memory calling additional
functions.  The point of everything was to make Button1Click() itself as
simple as possible, everything else is just internal details.


Gambit
Technical Details
Message-ID: <3f787760@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!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> <3f763170$1@newsgroups.borland.com> <3f770460@newsgroups.borland.com> <3f774a65@newsgroups.borland.com> <3f77a4c8@newsgroups.borland.com> <3f77b78b$1@newsgroups.borland.com> <3f77e4bb@newsgroups.borland.com> <3f7802c2$1@newsgroups.borland.com> <3f782a24@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-29 11:30:56 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f70794d@newsgroups.borland.com> <3f7545de@newsgroups.borland.com> <3f763170$1@newsgroups.borland.com> <3f770460@newsgroups.borland.com> <3f774a65@newsgroups.borland.com> <3f77a4c8@newsgroups.borland.com> <3f77b78b$1@newsgroups.borland.com> <3f77e4bb@newsgroups.borland.com> <3f7802c2$1@newsgroups.borland.com> <3f782a24@newsgroups.borland.com>
Subject: Re: Send a mail with attachment
Date: Mon, 29 Sep 2003 11:19:17 -0700
Lines: 25
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.1165
NNTP-Posting-Host: 67.23.78.204
Message-ID: <3f787760@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064859488 67.23.78.204 (29 Sep 2003 11:18:08 -0700)
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail