CFileDialog 사용 OFNALLOWMULTISELECT 로고 여러 파일 선택
CFileDialog dlg( TRUE, NULL, NULL, OFN_ALLOWMULTISELECT, NULL, NULL );
DWORD MAXFILE = 2562; //2562 is the max
TCHAR* pc = new TCHAR[MAXFILE * (MAX_PATH+1) + 1];
pc[0] = pc[1] = 0;
dlg.m_ofn.nMaxFile = MAXFILE;
dlg.m_ofn.lpstrFile = pc;
int iReturn = dlg.DoModal();
if(iReturn == IDOK)
{
int nCount = 0;
POSITION pos = dlg.GetStartPosition();
while (pos != NULL)
{
CString szPathName = dlg.GetNextPathName(pos);
TRACE( _T("%s/n"), szPathName);
nCount++;
}
CString str;
str.Format("Successfully opened %d files/n", nCount);
AfxMessageBox(str);
}
else if(iReturn == IDCANCEL)
AfxMessageBox("Cancel");
delete []pc;
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
【C언어 입문】 좋아하는 사람과 옆자리가 될 확률을 구한다하지만, 신경이 쓰이는 사람이 근처의 자리가 되면 기쁘다. 따라서 신경이 쓰이는 사람들이 가까운 자리에 앉을 확률을 계산하는 프로그램 쓰려고 합니다. 또한 어느 좌석도 같은 확률로 맞는 것으로 합니다. 우선 요구하고...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.