Environment: Win95 OSR2 & VC++5
I have a question about using COleDropTarget to
make a drop-file support app . My question is ,when a
drag-drop operation is over how to get the file's name
and path in the OnDrop() function ?
Although I can handle the WM_DROPFILES to get
what I want , I think there also should be these infos in the COleDataObject type object come along with the OnDrop()
I'v made below call :
CFile *pFile = pDataObject->GetFileData(CF_HDROP);
It seemed successful and return a value , but I can't get the file's name and path with : pFile-> GetFilePath () .
Did I do something wrong ? Can anyone tell me the correct method to do this ?
Any idea will be greatly appreciated !