Article View: borland.public.cppbuilder.nativeapi
Article #15148Re: URGENT: How to include MAPI functions
From: Chalermpong Chaiyawan
Date: Thu, 17 Jul 2003 03:22
Date: Thu, 17 Jul 2003 03:22
57 lines
3036 bytes
3036 bytes
It does not work. My mapi32.lib located in "C:\Program Files\Borland\CBuilder6\Lib\Psdk" directory. I change current directory to that directory and run command like this implib -c mapi32.lib, C:\Windows\System32\mapi32.dll Then I got these warnings Warning duplicate symbol: FGetComponentPath Warning duplicate symbol: FixMAPI Warning duplicate symbol: GetOutlookVersion Warning duplicate symbol: GetTnefStreamCodepage Warning duplicate symbol: HrGetOmiProvidersFlags Warning duplicate symbol: HrSetOmiProvidersFlagsInvalid Warning duplicate symbol: MAPIAdminProfiles Warning duplicate symbol: MAPIAllocateBuffer Warning duplicate symbol: MAPIAllocateMore Warning duplicate symbol: MAPIFreeBuffer Warning duplicate symbol: MAPIInitialize Warning duplicate symbol: MAPILogonEx Warning duplicate symbol: MAPIOpenFormMgr Warning duplicate symbol: MAPIOpenLocalFormContainer Warning duplicate symbol: MAPIUninitialize Warning duplicate symbol: OpenStreamOnFile Warning duplicate symbol: OpenTnefStream Warning duplicate symbol: OpenTnefStreamEx Warning duplicate symbol: RTFSync Warning duplicate symbol: WrapCompressedRTFStream I also add mapi32.lib to the project. I still got the same linker error, any suggestion? Thanks, Chalermpong Chaiyawan "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote in message news:3f15fc70@newsgroups.borland.com... > I don't think you are doing anything wrong. While MAPISendDocuments is > exported by the \winnt\system32\mapi32.dll file on my machine the compiler's > import32.lib import library does not seem to have it. > > Try this: > > Open a command window and change to the compiler's LIB directory (on my > machine "c:\program files\borland\cbuilder6\lib") > > Give the following command (altered to fit the directories on your machine) > > implib -c mapi32.LIB , c:\winnt\system32\mapi32.DLL > > Add mapi32.lib to the project file (File|Add_to_project). > > . Ed >
Technical Details
Message-ID:
<3f161737@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f15f72f@newsgroups.borland.com> <3f15fc70@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,43d5c8d8223d49a2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-16 20:39:55 PST From: "Chalermpong Chaiyawan" <chalermp@stormclub.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f15f72f@newsgroups.borland.com> <3f15fc70@newsgroups.borland.com> Subject: Re: URGENT: How to include MAPI functions Date: Thu, 17 Jul 2003 10:22:51 +0700 Lines: 60 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 203.121.141.2 Message-ID: <3f161737@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058412343 203.121.141.2 (16 Jul 2003 20:25:43 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail