Stuart McLachlan
stuart at lexacorp.com.pg
Wed May 19 08:49:14 CDT 2004
On 19 May 2004 at 16:17, Stuart McLachlan wrote: > On 19 May 2004 at 1:34, John W. Colby wrote: > > > I'd take that dll! any docs 4 the call syntax? > > > > Working on a couple of other things at the moment. Give me 'til > tomorrow morning (PNG time that is) > It may take a bit longer than I thought to convert MAPISend to a DLL. Calling MAPISend .exe, it pokes everything into the mail client in about half a second. Calling exactly the same thing as a DLL, it takes nearly a minute. I can watch the Addresses, Subject, Body and Attachment info being inserted into a new message with an interval of 10 seconds or so between each field. (At the same time, the Access app that I am calling the DLL from is showing 99% CPU usage in the task manager) Damned if I can see why. Ultimately, all of the info is gathered and passed in one structure in a single call to the MapiSendMail function in MAPI32.DLL. I can't see why it would then take MAPI32.DLL quite a few seconds to poke each field at the client. Any API gurus got any ideas? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support.