COM Interface Oddity

  • Thread starter Peter Katsoulas
  • Start date
P

Peter Katsoulas

We have an application written in C++ under VS 2008 using CLR. It has a
feature which uses a COM interface to pass data to MS Project 2007. On some
machines (not all), MS Project never comes up. The COM error -2147219988 is
produced. The Microsoft expalnation is:

Couldn't Backup Destination SysDataUpgrade Procedure...TERMINATED"This error
occurs when upgrading through the install in the InstallAssist.Log orif you
are running the InstallAssist from the exe.

I do not see how this is relevant to my application. Does anyone have any
ideas?
 
S

Stephen Sanderlin [MVP]

-2147219988 is 0x800405EC in hex... but I can't find either code
anywhere except for the article you referenced which is discussing a
different product.

--
Stephen Sanderlin, Project MVP
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read our blog at: http://www.projectserverhelp.com

Learn | Connect | Grow @ The Microsoft Project Conference
Phoenix, AZ - September 14-17, 2009
 
P

Peter Katsoulas

This COM error comes from the following call to the MS Project interface. The
instance ( SPRMPDFile::GetMSProjectApplication()) of MS Project appears
correct. I agree that this error makes no sense and to add to the confusion,
it does not happen on all machines.

SPRMPDFile::GetMSProjectApplication()->FileOpen
(
(_bstr_t) m_strXMLPathName,
nullVariant, // not readOnly
(long)MSProject::pjDoNotMerge, // merge flag
nullVariant, // taskInformation
nullVariant, // table
nullVariant, // sheet
nullVariant, // noAuto
nullVariant, // UserID
nullVariant, // DatabasePassWord
_T("MSProject.XML"), // formatID for XML file
nullVariant, // map
MSProject::pjPoolReadOnly // PjPoolOpen
);
 

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