Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Registering Active Messaging Library
I'm trying to build a VFP application that can handle e-mails. I started down the road of using the standard Fox MAPI controls but they are crap. I then started writing my own DLL in Visual C and these work fine, but the only problem I'm having is that I can't trigger a refresh of the inbox (ie: get messages from an external mail server). I'm still playing with this in C but while I was rooting around MSDN I found some references to Active Messaging for Visual Fox. I thought I'd give this a try and I registered the library (olemsg32.dll) using regsvr32.exe. This seemed to go OK.
The problem I'm having is that every time I run the following line:
oSession = CREATEOBJECT("MAPI.Session")
I get this:
OLE Error: (xxxxxxxx) Class not registered.
Now I'm pretty sure I registered the class properly but I'm no OLE expert. I've checked all the relevant registry settings for "OLE messaging" and "MAPI" and they are all registered as available. Can anyone tell me what I'm doing wrong?
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement