🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #383

Re: problems with mapi.dll

#383
From: Tony Fountain
Date: Tue, 27 Apr 1999 00:00
61 lines
2363 bytes
You need to make sure you have the following structures defined (all in the
API viewer):

Public Type MapiFile
    Reserved As Long
    Flags As Long
    Position As Long
    PathName As String
    FileName As String
    FileType As String
End Type
Public Type MAPIMessage
    Reserved As Long
    Subject As String
    NoteText As String
    MessageType As String
    DateReceived As String
    ConversationID As String
    Flags As Long
    RecipCount As Long
    FileCount As Long
End Type
Public Type MapiRecip
    Reserved As Long
    RecipClass As Long
    Name As String
    Address As String
    EIDSize As Long
    EntryID As String
End Type

Later,
Tony Fountain, MCP
tonyfo at primenet dot com
ICQ# 16575458
Please do not email me directly, my wife already clutters up my inbox

Trooper <luc.vandal@sympatico.ca> wrote in message
news:owmV2.2702$gi2.31374@wagner.videotron.net...
> This is the error it gives me when i compile the code:
>
>             User-defined type not defined
>
> >
> > 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: <OBVr0WSk#GA.204@cppssbbsa03>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <A34V2.137$gi2.17742@wagner.videotron.net> <owmV2.2702$gi2.31374@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: 10b213,661d344ad6a38120
X-Google-Attributes: gid10b213,public
X-Google-Thread: 108062,661d344ad6a38120
X-Google-Attributes: gid108062,public
X-Google-Thread: 110e3b,661d344ad6a38120
X-Google-Attributes: gid110e3b,public
From: "Tony Fountain" <tonyfo#primenet.com>
Subject: Re: problems with mapi.dll
Date: 1999/04/27
Message-ID: <OBVr0WSk#GA.204@cppssbbsa03>
X-Deja-AN: 471730613
References: <A34V2.137$gi2.17742@wagner.videotron.net> <owmV2.2702$gi2.31374@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