heinz
May 7th, 1999, 03:16 AM
Hi
I use a workerthread to insert file-items into a CRichEditDoc/View.
The workerthread sends a userdefined message using Sendmessage(AfxGetApp()->m_pMainframe->m_hWnd,....) with the CView as lParam..
The mainframe messagehandler sends a message to the view.
The view messagehandler calls InsertFileAsObject("...") to insert an OLE-item
In COleClientItem::CreateFromFile() the functioncall ::OleCreateFromFile()returns the value 0x80040007 (OLE_E_BLANK) and therefore an exception is thrown.
What does this return value mean and what make I wrong?
(I've added a CMyView::OnRButtonDown-messagehandler. This handler calls InsertFileAsObject(). When I press the rigth mouse key, the file is inserted correctly!)
Regards,
Heinz
I use a workerthread to insert file-items into a CRichEditDoc/View.
The workerthread sends a userdefined message using Sendmessage(AfxGetApp()->m_pMainframe->m_hWnd,....) with the CView as lParam..
The mainframe messagehandler sends a message to the view.
The view messagehandler calls InsertFileAsObject("...") to insert an OLE-item
In COleClientItem::CreateFromFile() the functioncall ::OleCreateFromFile()returns the value 0x80040007 (OLE_E_BLANK) and therefore an exception is thrown.
What does this return value mean and what make I wrong?
(I've added a CMyView::OnRButtonDown-messagehandler. This handler calls InsertFileAsObject(). When I press the rigth mouse key, the file is inserted correctly!)
Regards,
Heinz