Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapi Session is not working on other machines
Message
From
11/02/2000 12:49:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Mapi Session is not working on other machines
Miscellaneous
Thread ID:
00330821
Message ID:
00330821
Views:
62
Hi,

I'm using a PRG from foxadvisor, 97 called VFPMAIL.PRG. In that prg it creates a form at runtime, and than adds a mapisession control to the form. It works fine on my machine, I've been using it for a couple of years.

Now I'm trying to simply include this in some code on another machine on my network and I get a message:

OLE error code 0x800401f3: Invalid class string

I'm assuming that means the machine must not have a DLL or OCX registered like it should. I just can't figure out which one it needs for crying out loud. I have been searching for about 2 hours on MapI, etc in UT, but it seems like many are using a different syntax in the addobject method. Something like MSMAPI.Mapimessage instead of simply 'MAPISESSION' as used in the VFPMAIL example.

The line that it breaks on is the addobject call below. Can anyone tell me which dll/ocx to register? Thanks! -Rick

**** Create MAPI Session and log in
loDummyForm = createobject( 'Form' )
wait Window "running addobject method"
loDummyForm.Addobject( 'oleSession', 'MAPISession')
Next
Reply
Map
View

Click here to load this message in the networking platform