Article View: borland.public.cppbuilder.nativeapi
Article #12550Re: Can't use MAPILogonEx
From: Dennis Jones
Date: Tue, 02 Dec 2003 17:36
Date: Tue, 02 Dec 2003 17:36
39 lines
2076 bytes
2076 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com...
> 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( .......
>
> }
Hmm...I've had no trouble compiling/linking normal MAPI functions, but I
also get errors when I try to use MapiLogonEx, even if I include mapix.h.
There must be a trick to it, but I'm stumped.
- Dennis
Technical Details
Message-ID:
<3fcccdb1$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.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> <t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@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: "Dennis Jones" <djones@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <imbpsvssig4cvsqge6v4q0cnnp9vghq8aa@4ax.com> <t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com> Subject: Re: Can't use MAPILogonEx Date: Tue, 2 Dec 2003 09:36:48 -0800 Lines: 41 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: 204.200.27.7 Message-ID: <3fcccdb1$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070386609 204.200.27.7 (2 Dec 2003 09:36:49 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail