Article View: borland.public.cppbuilder.nativeapi
Article #13633Re: Send a mail with attachment
From: David Ayre
Date: Wed, 01 Oct 2003 08:08
Date: Wed, 01 Oct 2003 08:08
36 lines
2468 bytes
2468 bytes
Thanks Remy & Rodolfo, I think I favour the .lib file method. It is the way I normally deal with dlls. I'll give it a try anyway. Thanks again for the help. Cheers, David "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote: > >"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message >news:3f79c517@newsgroups.borland.com... >> Not bad, but there is a better way of doing that, have a >> look at my other post. > >The only difference between your suggestion and mine is that your code >dynamically loads the DLL at runtime whereas mine statically links to it at >compile-time instead. Either way, the same DLL is being accessed at runtime >once the functions contained inside of the DLL are actually being called by >the user's code. It is just a matter of where the function pointers are >coming from. And since most modern computers have MAPI installed now >anyway, there is little difference between using run-time loading vs. >compile-time linking. In the older days, MAPI wasn't as readily available, >so run-time loading was used to make sure MAPI was installed first before >trying to use it. That is not so much the case anymore, unless you're >trying to write programs that have backwards support all the way back to the >earliest of the Windows 95 versions. > > >Gambit > >
Technical Details
Message-ID:
<3f7a8b6d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f70794d@newsgroups.borland.com> <3f784a32@newsgroups.borland.com> <3f79708b@newsgroups.borland.com> <3f79860c@newsgroups.borland.com> <3f799567@newsgroups.borland.com> <3f79bd46$1@newsgroups.borland.com> <3f79c517@newsgroups.borland.com> <3f79d851@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-10-01 01:12:50 PST From: "David Ayre" <davidcayre@aol.com> Sender: "David Ayre" <davidcayre@aol.com> Reply-To: "David Ayre" <davidcayre@aol.com> Subject: Re: Send a mail with attachment Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 195.93.34.11 References: <3f70794d@newsgroups.borland.com> <3f784a32@newsgroups.borland.com> <3f79708b@newsgroups.borland.com> <3f79860c@newsgroups.borland.com> <3f799567@newsgroups.borland.com> <3f79bd46$1@newsgroups.borland.com> <3f79c517@newsgroups.borland.com> <3f79d851@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <3f7a8b6d$1@newsgroups.borland.com> Date: 1 Oct 2003 01:08:13 -0700 X-Trace: newsgroups.borland.com 1064995693 207.105.83.66 (1 Oct 2003 01:08:13 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail