library not registered outlook 2003 Vista

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-
Queryinterface(getIID(), (LPVOID*)(&intf))': Library not registered.
@ c:\bcb\emuvcl\utilcls.h/3006". To narrow down the problem, I
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top