I need a way to get the filename from a file when it is dropped into my view from explorer. I think I've added most of the code correctly, but the pointer to the COleDataObject that is given on the "OnDrop" doesn't seem to give me any info.
The CFile pointer is always null using:
CFile* pFile = pDataObject->GetFileData(m_cfPrivate);
in the section:
BOOL CDMMView::OnDrop(COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point)
the format for the CLIPFORMAT is shown below:
CLIPFORMAT CDMMView::m_cfPrivate = NULL;
if (m_cfPrivate == NULL)
m_cfPrivate = (CLIPFORMAT)
I know this is probably easy, but I need the fix fast!!