The information in this article applies to:
SUMMARYA simple MAPI program written originally in 16-bit VB 3.0 fails on the MAPISENDMAIL function when the program is recompiled in the 32-bit VB 4.0 environment. The program will produce an error 25 on the MAPISENDMAIL function, which is an invalid recipient error. MORE INFORMATION
The reason for the error is that the way of declaring a 32-bit function in
32-bit Visual Basic 4.0 is different then declaring a 16-bit function in
16-bit Visual Basic (3.0 or 4.0). Mapi32.dll is expecting a pointer to the
Recipient array instead of the address of the first element.
Q163216 XCLN: Updated Mapivb32.bas for Simple MAPI on 32-Bit PlatformsThe following is the correct syntax for the code to call the MAPISendMail function with the new BAS file:
Additional query words: MAPI sending error 32 bit whoami fails
Keywords : kbusage XCLN |
Last Reviewed: May 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |