T
TroySupport
Hi,
We have been stuck on this particular problem for a few days so any help
would be gratefully received. We have a win32 application developed in C++
using Visual Studio 6 which succesfully connects to Outlook on hundreds of
sites. However we have one particular site where the application is unable to
connect to Outlook.
The site has 3 workstations running Office 2003 SP3 on windows XP and they
all throw an exception "Invalid Pointer" when trying to connect to the
Outlook.Application namespace. The snippet of code is below. The commented
out piece of code is the original code that is being used for all of our
clients. Have tried both on the affected site to no avail.
try
{
hResult = pApp.CreateInstance( __uuidof(Application) ) ;
//hResult = pApp.CreateInstance( "Outlook.Application" ) ;
Name = pApp->GetNamespace( L"MAPI" ) ;
}
Are there any security settings within XP or Outlook that would stop this
working? We have already tried re-installing Office, once again with no luck.
If anyone out there in MSDN land has any ideas we would be very grateful.
Many Thanks
Troy Support
We have been stuck on this particular problem for a few days so any help
would be gratefully received. We have a win32 application developed in C++
using Visual Studio 6 which succesfully connects to Outlook on hundreds of
sites. However we have one particular site where the application is unable to
connect to Outlook.
The site has 3 workstations running Office 2003 SP3 on windows XP and they
all throw an exception "Invalid Pointer" when trying to connect to the
Outlook.Application namespace. The snippet of code is below. The commented
out piece of code is the original code that is being used for all of our
clients. Have tried both on the affected site to no avail.
try
{
hResult = pApp.CreateInstance( __uuidof(Application) ) ;
//hResult = pApp.CreateInstance( "Outlook.Application" ) ;
Name = pApp->GetNamespace( L"MAPI" ) ;
}
Are there any security settings within XP or Outlook that would stop this
working? We have already tried re-installing Office, once again with no luck.
If anyone out there in MSDN land has any ideas we would be very grateful.
Many Thanks
Troy Support