ho to add reference to MAPI?

  • Thread starter Thread starter Walter Sobchak
  • Start date Start date
W

Walter Sobchak

I tried to browse and add mapi32.dll (system32/mapi32.dll) but it
returns an error that the reference could not be added.

Any suggestions?
 
Walter,

MAPI32 exposes functions, so you can't add a reference. You will need
to figure out which functions you want to call, and then declare the
functions to call through the P/Invoke layer.
 
MAPI32 exposes functions, so you can't add a reference. You will need
to figure out which functions you want to call, and then declare the
functions to call through the P/Invoke layer.

Note also that MAPI does not with With Windows MAIL so it cannot be used in
Vista.

Andrus.
 
Hi,

MAPI is a native dll, you can only add references to COM dll.
You need to P/invoke the functions exported by MAPI

What are you trying to do?
 
I was stupid...
What I tried to do was find a Microsoft MAPI reference in references.
When I couldn't find it I tried with the dll.
Anyway what I want is to open the default mail client with the specified
attachement.
 
Back
Top