纯纯的基础问题.555555
void CZipDlg::OnMenuFileopen()
{
CFileDialog dlg(.............................);
CString strFilePath=dlg.GetNextPathName(pos);
POSITION pos = dlg.GetStartPosition();
while (pos != NULL)
{
CString strFilePath=dlg.GetNextPathName(pos);
..................
..................
}
}
我想把strFilePath保存下来后面的void abc(){}函数里面还要用到这些文件名.
我想用全局变量,但是pos的数值不确定啊.请问如何能把所选择的文件名称保存起来,使其他的函数能够用到?