General information
Category:
COM/DCOM and OLE Automation
Title:
Mapi Session is not working on other machines
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only