Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI Session object not available

Status
Not open for further replies.

webmonkey323

Programmer
Dec 17, 2002
10
GB
Hi,

I'm trying to write a simple VB6 email application but am having trouble locating the MAPISession object. When I add the MAPI Controls v6.0 (c:\winnt\system32\Msmapi32.ocx) from components, then add it to a form, I get the MAPIMessages1 control to use. However, whenever I try to reference MAPISession1 I get a variable not set error. Do I need to add another control or should it all be contained within the one .ocx? Thanks.
 
On my version of VB6 (SP5) both MapiSession control and MapiMessage control are in the same .OCX, MSMAPI32.OCX. It's included as Microsoft MAPI controls 6.0 under Project|Components.

You do however have to add both of the separate controls to the form.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Thanks guys, I knew there must be another control kicking around somewhere! Basically, when I was adding the .OCX to my toolbox, it was wrappering the layout of the controls so that I could only see the Message control and not the Session control. I've managed to locate them both now. Thanks again, Nick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top