Article View: comp.lang.basic.visual.misc
Article #380Re: problems with mapi.dll
From: Tony Fountain
Date: Tue, 27 Apr 1999 00:00
Date: Tue, 27 Apr 1999 00:00
36 lines
1969 bytes
1969 bytes
Exactly what error do you get? Do you have MAPI installed? Here's the
declaration I use and it works like a charm, straight from the MAPI32.TXT
via the API Viewer (ok, with the data types spelled out):
Private Declare Function MAPISendMail Lib "MAPI32.DLL" Alias "BMAPISendMail"
_
(ByVal Session As Long, _
ByVal UIParam As Long, _
Message As MAPIMessage, _
Recipient() As MapiRecip, _
File() As MapiFile, _
ByVal Flags As Long, _
ByVal Reserved As Long) As Long
Later,
Tony Fountain, MCP
tonyfo at primenet dot com
ICQ# 16575458
XYZ <vanluc@faltec.com> wrote in message
news:A34V2.137$gi2.17742@wagner.videotron.net...
> Why is it that VB doesn't recognize this:
>
> Declare Function MAPISendMail Lib "MAPI.DLL" Alias "BMAPISendMail" _
> (ByVal Session&, ByVal UIParam&, Message As MAPIMessage, Recipient _
> As MapiRecip, File As MapiFile, ByVal Flags&, ByVal Reserved&) As Long
>
> if i declare another function from, for example kernel32, no problems! The
> problem appears when i try to use mapi.dll or mapi32.dll...TIA!
>
>
> --
> Good day to you!
> www.illusion.qc.ca
>
>
Technical Details
Message-ID:
<eFrvqaHk#GA.270@cppssbbsa03>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<A34V2.137$gi2.17742@wagner.videotron.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104093,661d344ad6a38120 X-Google-Attributes: gid104093,public X-Google-Thread: 110e3b,661d344ad6a38120 X-Google-Attributes: gid110e3b,public X-Google-Thread: 10b213,661d344ad6a38120 X-Google-Attributes: gid10b213,public X-Google-Thread: 108062,661d344ad6a38120 X-Google-Attributes: gid108062,public From: "Tony Fountain" <tonyfo#primenet.com> Subject: Re: problems with mapi.dll Date: 1999/04/27 Message-ID: <eFrvqaHk#GA.270@cppssbbsa03> X-Deja-AN: 471359400 References: <A34V2.137$gi2.17742@wagner.videotron.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-MSMail-Priority: Normal Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,microsoft.public.vb.controls,microsoft.public.vb.winapi