先复制部分源码哈。
void CRenameDlg::OnDropFiles(HDROP hDropInfo)
{
char filename[512];
CString str;
int DropCount = DragQueryFile(hDropInfo,-1,NULL,0);
for(int i=0; i< DropCount;i++)
{
DragQueryFile(hDropInfo,i,filename,512);
str.Format ("%s",filename);
m_list.AddString(str);
}
DragFinish (hDropInfo);
showfile(0);
}
在Debug下,啥问题也没有啊 !
在Release下出错。
错误:Unhandled exception in rename.exe(MFC42.DLL):0xc0000005:Access Violation.
我是新来的 ,多多关照。
[此贴子已经被作者于2005-7-25 13:02:46编辑过]