Article View: borland.public.cppbuilder.nativeapi
Article #12549Re: Can't use MAPILogonEx
From: Bob Gonder
Date: Tue, 02 Dec 2003 17:21
Date: Tue, 02 Dec 2003 17:21
29 lines
1740 bytes
1740 bytes
Fernando wrote:
>Hi,
>
>I'm trying to use MAPILogonEx() but I keep getting an error complaining that
>the function isn't defined anywhere. I'mincluding MAPI.HPP
>
>What am I doing wrong?
Don't know wilthout seeing the actual code and the actual error
message. But, I wasn't able to get MAPI32 to link with my code, so I
used the following with with MAPILogon. It should work with
MAPILogonEx as well.
HANDLE hMAPILib;
LPMAPILOGONEX MAPILogonEx;
LPMAPILOGOFF MAPILogoff;
ULONG _stdcall StartEmail(void)
{
hMAPILib = LoadLibrary("MAPI32.DLL");
MAPILogonEx =
(LPMAPILOGON)GetProcAddress(hMAPILib,"MAPILogonEx");
MAPILogoff =
(LPMAPILOGOFF)GetProcAddress(hMAPILib,"MAPILogoff");
return SUCCESS_SUCCESS == fnMAPILogonEx( .......
}
Technical Details
Message-ID:
<t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<imbpsvssig4cvsqge6v4q0cnnp9vghq8aa@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cb65823e8ed3a9bb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-02 09:39:31 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Can't use MAPILogonEx Date: Tue, 02 Dec 2003 09:21:22 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com> References: <imbpsvssig4cvsqge6v4q0cnnp9vghq8aa@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.56.157.225 X-Trace: newsgroups.borland.com 1070385680 65.56.157.225 (2 Dec 2003 09:21:20 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail