I have something like this. I think it is an XP issue. Search on "80040112" for a good thred with Sergy and Boyd.
You could check to see if CDO could be substituted. It would not require that much more code. And it is licensed as an OS component. It's a registration error. The stuff I have read indicates that a VCX as a way around - NewObject does not seem to work.
So you could CREATE CLASS for an olecontrol and select "MAPI Session Control" and use SET Classlib to bring it in. MS seems t have us jumping through hoops to make stuff work. And still no themems for OCX.
Let me know if you find a PRG work around. Like I said DEFINE CLASS and NewObject have been reported to work - but I have not had a success with it, yet.
>Hello,
>
>When i am trying to including mapi seesion object in Visual Foxpro and give Send button
>i get OLE Error Code: 0x80020006: Unknow Name.
>I have service pack installed.
>Sample of the code is :
>With This.Parent.OLEMAPIMsg
> .MsgIndex=-1
> .RecipDisplayName=ALLTRIM(This.Parent.SendTo.Value)
> .MsgSubject=This.Parent.Subject.Value
> .MsgNoteText=This.Parent.MsgTxt.Value
> .SessionID=This.parent.olemapisession.sessionid
> .Send
> Endwith
>
>Pl. help urgently
Imagination is more important than knowledge