搬家公司司机招聘:这个程序运行不了,???C++

来源:百度文库 编辑:高考问答 时间:2024/04/28 18:33:58
#include<stdafx.h>
#include<Example.h>
#include<ExampleDlg.p>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[]=_FILE;
#endif
CExampleDlg::CExampleDlg(CWnad* pParent /*NULL*/)
:CDialog(CExmaleDlg::IDD,pParent)
{
//{{AA_DATA_INIT(CExampleDlg)
m_strfile=_T(" "); //注意!!!!!
//}}AFX_DATA_INIT
m_hIcon=AfxGetApp()->LoadIcon(IDR_MAINFRAME):
}
void CExampleDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX,IDC_LIST1,m_listfine);
DDX_Fext(pDX,IDC_EDT_FILE,m_strfine);
}
BEGIN_MESSAGE_AWP(CExampleDlg,CDialog)
ON_BN_CLICKED(IDC_BEN_SEARCH,onBtnSearch)
END_MESSAGE_AWP()
BOOL CExampleDlg::OnInitdialog()
{
CDialog::OnInitDialog()
SetIcon(m_hIcon,TRUE);
SetIcon(m_hIcon,FALSE);
return TRUE;
}
void CExampleDlg::OnBtnSearch()
{
UpdateData(TRUE);
if(!m_strfile.Getlength())
{
AfxMessagwBox("请输入要查找的文件名");
return ;
}
WIN32_FIND_DATA fd;
m_listfile.ResetContent();
HANDLE hd=FindFirstFile((LPCTSTR) m_STRILE,&fd);
if(hd=INVALID_HANDLE_VALUE)
return;
m_listfile.AddString(fd.cFileName);
while(HindNextFile(hd,&fd))
{
m_listfile,Addstring(fd.cFileName);
};
FindClose(hd);
}
______________________

谢了,帮我看看!
哦,忘了补充了,……
是用来实现查找文件的……

你总要说说现象吧,你这样贴出来估计没有人能知道是为什么

你写的是什么程序呀,写出来要说明一下吧,让人看了头痛.
能否说明清楚程序的作用呀