🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Can't use MAPILogonEx

#12434
From: Bob Gonder
Date: Thu, 04 Dec 2003 02:26
30 lines
2488 bytes
Dennis Jones wrote:
>
>Well, the OP said he got "an error complaining that the function isn't
>defined anywhere",

Which _could_ also refer to a linker error.

> and then refers to the mapi.hpp header file in which he
>expected to find the function prototype, which suggested a compiler error.

Or that he expected the header to magically bring in the library.

>So, I changed it to "MAPILogonEx" *and* #include'd mapix.h, and now I get
>conversion errors because MAPILogonEx takes an "LPMAPISESSION" and Borland's
>version of MAPILogon takes an "unsigned *".

Right, if they took the same parameters, what would be the point?
MAPILogon returns a session Handle, -Ex returns the (more powerful?)
MapiSession structure.  Which appears to be a VB tie-in to ActiveX
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusingmapicontrol.asp

>This suggests that Fernando just needed to include "mapix.h" to get past the
>error he was getting (because MAPILogonEx is not defined in the Borland
>header, "mapi.hpp").

Right. MSDN  says it is in MAPIX.H
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_mapilogonex.asp


 
Technical Details
Message-ID: <fn4tsvknjq9gpmn5bciaf96pmam7a2ps8b@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <imbpsvssig4cvsqge6v4q0cnnp9vghq8aa@4ax.com> <t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com> <3fcccdb1$3@newsgroups.borland.com> <57cqsv0oufvcav13m7c9b9v06dgn7e6cps@4ax.com> <3fcd3ddb$1@newsgroups.borland.com> <fdgssvgi495ler9vqg533p0le3uds27ec5@4ax.com> <3fce54a1$1@newsgroups.borland.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-03 18:36:20 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Can't use MAPILogonEx
Date: Wed, 03 Dec 2003 18:26:10 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <fn4tsvknjq9gpmn5bciaf96pmam7a2ps8b@4ax.com>
References: <imbpsvssig4cvsqge6v4q0cnnp9vghq8aa@4ax.com> <t3ipsvo8hk1g4rbgdajj6mv08733vi27qe@4ax.com> <3fcccdb1$3@newsgroups.borland.com> <57cqsv0oufvcav13m7c9b9v06dgn7e6cps@4ax.com> <3fcd3ddb$1@newsgroups.borland.com> <fdgssvgi495ler9vqg533p0le3uds27ec5@4ax.com> <3fce54a1$1@newsgroups.borland.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: 67.31.162.217
X-Trace: newsgroups.borland.com 1070504772 67.31.162.217 (3 Dec 2003 18:26:12 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail