N
Nita
Hi,
I have a client who has our software on their machine, used to have xp
and office 2003 and everything worked fine. Now they upgraded to
vista (new laptop) and still use office 2003. When they try and
connect to outlook using com it brings up the following error "'src-
created a program that it's sole function is to connect to outlook and
display an email.
Here is the code for that program:
MAPIFolderPtr iFolder;
MailItemPtr pMail;
TOutlookApplication *Outlook;
Outlook = new TOutlookApplication(this);
// Error occurs when connecting
Outlook->Connect();
pNameSpace = Outlook->GetNamespace(WideString("MAPI"));
iFolder = pNameSpace->GetDefaultFolder(olFolderInbox);
pMail = iFolder->Items->Add((TVariant) olMailItem);
pMail->Recipients->Add((TVariant)"(e-mail address removed)");
pMail->Recipients->ResolveAll();
The error on their machine always happens when trying to connect. If
outlook is open or closed, it does not matter. I have found places
where they say that it's likely to be that the default mail program
isn't outlook, I have set the default mail program to be windows mail,
then set it back to be outlook (it was outlook in the first place).
There is at least one other person in the client's office that has the
same setup and the connection to email works. We have many other
users using a similar setup that are having no problem.
I have reached the limit of my knowledge and have googled for the last
week with no avail to the problem. Here is hoping that someone might
be able to shed a little more light on the subject. Thanks.
Anita
I have a client who has our software on their machine, used to have xp
and office 2003 and everything worked fine. Now they upgraded to
vista (new laptop) and still use office 2003. When they try and
connect to outlook using com it brings up the following error "'src-
@ c:\bcb\emuvcl\utilcls.h/3006". To narrow down the problem, IQueryinterface(getIID(), (LPVOID*)(&intf))': Library not registered.
created a program that it's sole function is to connect to outlook and
display an email.
Here is the code for that program:
MAPIFolderPtr iFolder;
MailItemPtr pMail;
TOutlookApplication *Outlook;
Outlook = new TOutlookApplication(this);
// Error occurs when connecting
Outlook->Connect();
pNameSpace = Outlook->GetNamespace(WideString("MAPI"));
iFolder = pNameSpace->GetDefaultFolder(olFolderInbox);
pMail = iFolder->Items->Add((TVariant) olMailItem);
pMail->Recipients->Add((TVariant)"(e-mail address removed)");
pMail->Recipients->ResolveAll();
The error on their machine always happens when trying to connect. If
outlook is open or closed, it does not matter. I have found places
where they say that it's likely to be that the default mail program
isn't outlook, I have set the default mail program to be windows mail,
then set it back to be outlook (it was outlook in the first place).
There is at least one other person in the client's office that has the
same setup and the connection to email works. We have many other
users using a similar setup that are having no problem.
I have reached the limit of my knowledge and have googled for the last
week with no avail to the problem. Here is hoping that someone might
be able to shed a little more light on the subject. Thanks.
Anita