给分.50分.只要能解决我的问题.
vomo 2004-02-10 08:23:52 void CMy1Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
CInputDlg1 dlg;
CString str=dlg.GetInput("输入","请在下面文本框中输入字符串:");
if(str!=""&&str.Left(1)!="\\"){
str+="\\";
}
if(str!=""){
m_a.ResetContent();
int iResult=m_a.Dir(0x17,str+"*.*");
if(iResult==LB_ERR){
MessageBox("添加文件明出错!");
}
else if(iResult==LB_ERRSPACE){
MessageBox("无法为列表框分配足够的内存!");
}
}
}
Compiling...
1Dlg.cpp
Linking...
1Dlg.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall CInputDlg1::GetInput(char const *,char const *)" (?GetInput@CInputDlg1@@QAE?AVCString@@PBD0@Z)
Debug/1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
1.exe - 2 error(s), 0 warning(s)
这是为什么?
为什么我的一个函数不能实现??????
怎么样才能实现它??
我给分.