我在做鼠标处理函数时,使用如下代码:
void CMyDlg::OnExecute()
{
// TODO: Add your command handler code here
MessageBox("执行");
HTREEITEM CurrentNode =m_tree.GetSelectedItem(); //取得选择的节点
CString FullPath ;
FullPath=GetFullPath(CurrentNode); //取得节点全目录
COMMAND command;
command.ID=ExecFile; //设置命令为删除文件 //删除文件
command.Iparam=FullPath.LockBuffer(); //将路径加入命令对像
send(server,(char*)&command,sizeof(command),0);
}
但GetFullPath 确出错,error C2065: 'GetFullPath' : undeclared identifier,我想问一下如何处理?及方法?
void CMyDlg::OnExecute()
{
// TODO: Add your command handler code here
MessageBox("执行");
HTREEITEM CurrentNode =m_tree.GetSelectedItem(); //取得选择的节点
CString FullPath ;
FullPath=GetFullPath(CurrentNode); //取得节点全目录
COMMAND command;
command.ID=ExecFile; //设置命令为删除文件 //删除文件
command.Iparam=FullPath.LockBuffer(); //将路径加入命令对像
send(server,(char*)&command,sizeof(command),0);
}
但GetFullPath 确出错,error C2065: 'GetFullPath' : undeclared identifier,我想问一下如何处理?及方法?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货