Failed To Launch Server Application

M

Magnus

Hi!

Using Createfromfile from COleDocObjectItemin VC6 sp5
generates Failed To Launch Server Application in
Powerpoint2000. It works with Powerpoint2003

Bug in Powerpoint2000, VC6 or My app ?
MyCode
BOOL CMyDocContainerDoc::OnOpenDocument(LPCTSTR
lpszPathName)
{
// TODO: Add your specialized creation code here

// Create new item connected to this document.
COleMessageFilter* pFilter;
pFilter = (COleMessageFilter* )
AfxOleGetMessageFilter( );
pFilter->SetMessagePendingDelay( 90000 );
CMyDocContainerCntrItem* pItem = NULL;

CWaitCursor wc;
TRY
{
pItem = new CMyDocContainerCntrItem(this);
m_bEmbedded=TRUE;
if (!pItem->CreateFromFile(lpszPathName))
AfxThrowMemoryException(); //

SetPathName(lpszPathName);
ASSERT_VALID(pItem);
return TRUE;
}
CATCH(CException, e)
{
if (pItem != NULL)
{
ASSERT_VALID(pItem);
pItem->Delete();
}
LcwAfxMessageBox(IDP_FAILED_TO_CREATE);

}
END_CATCH
return FALSE;
}
 

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