Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI in Visual Foxpro 6. gives error 0x80020006
Message
 
To
25/10/2005 09:34:35
Modi Ashish
Microland Technonogy
Ahmedabad, India
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '95
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01061840
Message ID:
01061873
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform