Click here to Skip to main content
15,904,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFinding deleted virtual keywords Pin
manustone8-Sep-06 0:56
manustone8-Sep-06 0:56 
AnswerRe: Finding deleted virtual keywords Pin
Steen Krogsgaard8-Sep-06 3:51
Steen Krogsgaard8-Sep-06 3:51 
QuestionAdding buttons in title bar Pin
pc_dev8-Sep-06 0:54
pc_dev8-Sep-06 0:54 
AnswerRe: Adding buttons in title bar Pin
Hamid_RT8-Sep-06 1:08
Hamid_RT8-Sep-06 1:08 
GeneralRe: Adding buttons in title bar Pin
pc_dev8-Sep-06 1:49
pc_dev8-Sep-06 1:49 
QuestionOffice automation Pin
Wim Engberts8-Sep-06 0:27
Wim Engberts8-Sep-06 0:27 
AnswerRe: Office automation Pin
led mike8-Sep-06 4:38
led mike8-Sep-06 4:38 
QuestionCapturing type of file Pin
kiranin8-Sep-06 0:01
kiranin8-Sep-06 0:01 
AnswerRe: Capturing type of file Pin
toxcct8-Sep-06 0:03
toxcct8-Sep-06 0:03 
GeneralRe: Capturing type of file Pin
kiranin8-Sep-06 0:15
kiranin8-Sep-06 0:15 
GeneralRe: Capturing type of file Pin
toxcct8-Sep-06 0:17
toxcct8-Sep-06 0:17 
GeneralRe: Capturing type of file Pin
kiranin8-Sep-06 0:24
kiranin8-Sep-06 0:24 
GeneralRe: Capturing type of file Pin
toxcct8-Sep-06 0:37
toxcct8-Sep-06 0:37 
GeneralRe: Capturing type of file Pin
Iain Clarke, Warrior Programmer8-Sep-06 0:20
Iain Clarke, Warrior Programmer8-Sep-06 0:20 
QuestionRe: Capturing type of file Pin
David Crow8-Sep-06 3:21
David Crow8-Sep-06 3:21 
Questionhow to find hidden windows restricted due to mandatory profile Pin
yang__lee8-Sep-06 0:00
yang__lee8-Sep-06 0:00 
QuestionSocket programming -2 Pin
Kiran Pinjala7-Sep-06 23:53
Kiran Pinjala7-Sep-06 23:53 
AnswerRe: Socket programming -2 Pin
Steve S8-Sep-06 0:47
Steve S8-Sep-06 0:47 
QuestionHow to install SNMP services through MFC? Pin
Aryan S7-Sep-06 23:53
Aryan S7-Sep-06 23:53 
AnswerRe: How to install SNMP services through MFC? Pin
Hamid_RT8-Sep-06 8:33
Hamid_RT8-Sep-06 8:33 
QuestionOpen File Dailog with Multiple Files Selection Pin
Andy Rama7-Sep-06 23:37
Andy Rama7-Sep-06 23:37 
Hi to all,
I want to implement an Open File Dailog to select multiple files.
I have written code (following), but when I select more files ( i tried for more than 12 files) then control goes to return;.
I think it cause due to numbers of characters in all file path; As when same code i tried for other files with long file name & located at long location(long file path), control goes to return; when I select more than 4 files.

What might be the problem? Help me.

CFileDialog m_Open_Dialog(1,0,0,OFN_ALLOWMULTISELECT | OFN_EXPLORER ,"Text Files (*.txt)|*.txt||",0);<br />
<br />
	if(m_Open_Dialog.DoModal() != IDOK)<br />
		return;<br />
<br />
	CString m_strPath;<br />
	char *sFile_Name = m_Open_Dialog.m_ofn.lpstrFile;<br />
	int iCount =0;<br />
<br />
// FOR SINGLE FILE SELECTION<br />
	if( strlen(m_Open_Dialog.m_ofn.lpstrFileTitle) != 0)<br />
	{<br />
		m_strPath.Format("%s",sFile_Name);<br />
		iCount++;<br />
		return;<br />
	}<br />
<br />
	sFile_Name += ( strlen(sFile_Name) + 1);<br />
<br />
// FOR MULIPLE FILE SELECTION<br />
	do<br />
	{<br />
		m_strPath.Format("%s",sFile_Name);<br />
		iCount++;<br />
<br />
		sFile_Name += ( strlen(sFile_Name) + 1);<br />
	}while(strlen(sFile_Name)!=0);<code><br />
<br />
Thanks & Best regards,<br />
  Aniket Salunkhe

AnswerRe: Open File Dailog with Multiple Files Selection Pin
tanvon malik8-Sep-06 0:05
tanvon malik8-Sep-06 0:05 
GeneralRe: Open File Dailog with Multiple Files Selection Pin
Andy Rama8-Sep-06 1:16
Andy Rama8-Sep-06 1:16 
GeneralRe: Open File Dailog with Multiple Files Selection Pin
David Crow8-Sep-06 3:26
David Crow8-Sep-06 3:26 
Questionfocus problem in dialog box Pin
kanna_p7-Sep-06 23:06
kanna_p7-Sep-06 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.