Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook and Outlook Express
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00561486
Message ID:
00561527
Views:
24
We do something similar in our own mail-enabled applications using the MAPI Controls.
First you need to check MAPI controls, make sure that you have the 32-bit MAPI DLLs installed.

* Don't try to log onto MAPI unless we can find the DLL.
declare integer GetSystemDirectory in Win32API string @, integer
lcDirectory = replicate(chr(0), 80)
lnLen = GetSystemDirectory(@lcDirectory, 80)
lcDirectory = addbs(left(lcDirectory, lnLen))

* We can find it, give a message.

if file(lcDirectory + 'MAPI32.DLL')
.oMAPISession.SignOn()
.lLoggedIn = .oMAPISession.SessionID > 0
else
messagebox('Cannot find MAPI32.DLL')
.lLoggedIn = .F.
endif not file(lcDirectory + 'MAPI3...

Hope this helps.
Senior Consultant
Stonefield Systems Group Inc.
www.stonefield.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform