Click here to Skip to main content
15,900,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why the APP fails (GPF) ?? Pin
Maximilien21-Nov-02 2:54
Maximilien21-Nov-02 2:54 
GeneralRe: Why the APP fails (GPF) ?? Pin
Cris21-Nov-02 6:11
Cris21-Nov-02 6:11 
AnswerRe: Why the APP fails (GPF) ?? Pin
dima_t21-Nov-02 22:07
dima_t21-Nov-02 22:07 
QuestionWindow never getting the focus ?? Pin
Cris21-Nov-02 2:28
Cris21-Nov-02 2:28 
AnswerRe: Window never getting the focus ?? Pin
Maximilien21-Nov-02 2:59
Maximilien21-Nov-02 2:59 
GeneralRe: Window never getting the focus ?? Pin
Cris21-Nov-02 6:18
Cris21-Nov-02 6:18 
GeneralLoad from file Pin
bebe harhour21-Nov-02 2:18
bebe harhour21-Nov-02 2:18 
GeneralRe: Load from file Pin
Nitron21-Nov-02 3:45
Nitron21-Nov-02 3:45 
try
{
	CFileDialog fd(true,_T("txt"), _T("*.txt"));
	if(fd.DoModal() == IDOK)
	{
		CString buff = "";
		int i=0;
		int max_size = 256;
		ifstream inFile;
		inFile.open(fd.GetPathName());
		
		do
		{
			inFile.getline(buff.GetBuffer(max_size),max_size);
			this->m_ListCtrl.InsertItem(i, buff);
			i++;
		}while(!inFile.eof());
		
		inFile.close();
	}

	return true;
}

catch(...)
{
	// Handle Error
	return false;
}


- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
QuestionHow to Insert space in to mail Pin
suresh_sathya21-Nov-02 1:58
suresh_sathya21-Nov-02 1:58 
AnswerRe: How to Insert space in to mail Pin
Stephane Rodriguez.21-Nov-02 2:25
Stephane Rodriguez.21-Nov-02 2:25 
GeneralMS Project SDK Pin
Abubakar Siddque20-Nov-02 23:13
Abubakar Siddque20-Nov-02 23:13 
GeneralMultiline textbox Pin
suresh_sathya20-Nov-02 23:09
suresh_sathya20-Nov-02 23:09 
GeneralRe: Multiline textbox Pin
jhwurmbach20-Nov-02 23:19
jhwurmbach20-Nov-02 23:19 
GeneralRe: Multiline textbox Pin
suresh_sathya20-Nov-02 23:22
suresh_sathya20-Nov-02 23:22 
GeneralRe: Multiline textbox Pin
Roger Allen21-Nov-02 0:13
Roger Allen21-Nov-02 0:13 
GeneralRe: Multiline textbox Pin
jhwurmbach21-Nov-02 3:42
jhwurmbach21-Nov-02 3:42 
GeneralRe: Multiline textbox Pin
Christian Graus20-Nov-02 23:58
protectorChristian Graus20-Nov-02 23:58 
GeneralRe: Multiline textbox Pin
Anonymous21-Nov-02 1:12
Anonymous21-Nov-02 1:12 
GeneralMaximum size of EventLog Pin
draman20-Nov-02 22:58
draman20-Nov-02 22:58 
GeneralRe: Maximum size of EventLog Pin
RobJones21-Nov-02 3:06
RobJones21-Nov-02 3:06 
GeneralOOP Conception question Pin
khaldoun20-Nov-02 22:07
khaldoun20-Nov-02 22:07 
GeneralRe: OOP Conception question Pin
Joao Vaz20-Nov-02 22:43
Joao Vaz20-Nov-02 22:43 
GeneralRe: OOP Conception question Pin
khaldoun20-Nov-02 22:57
khaldoun20-Nov-02 22:57 
GeneralRe: OOP Conception question Pin
Joao Vaz21-Nov-02 0:02
Joao Vaz21-Nov-02 0:02 
GeneralRe: OOP Conception question Pin
Alexandru Savescu21-Nov-02 2:06
Alexandru Savescu21-Nov-02 2: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.