Click here to Skip to main content
15,867,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to check if char* is a number Pin
CPallini4-Nov-10 0:51
mveCPallini4-Nov-10 0:51 
AnswerRe: How to check if char* is a number Pin
piul4-Nov-10 1:30
piul4-Nov-10 1:30 
AnswerRe: How to check if char* is a number [modified] Pin
Alain Rist4-Nov-10 1:44
Alain Rist4-Nov-10 1:44 
GeneralRe: How to check if char* is a number Pin
federico.strati4-Nov-10 0:11
federico.strati4-Nov-10 0:11 
QuestionQuery For CFileDialog? Pin
Le@rner3-Nov-10 20:43
Le@rner3-Nov-10 20:43 
AnswerRe: Query For CFileDialog? Pin
Maximilien3-Nov-10 21:30
Maximilien3-Nov-10 21:30 
AnswerRe: Query For CFileDialog? Pin
GAJERA3-Nov-10 21:35
GAJERA3-Nov-10 21:35 
QuestionRe: Query For CFileDialog? [modified] Pin
David Crow4-Nov-10 2:58
David Crow4-Nov-10 2:58 
Have you considered something like:

CFileDialog fileDlg(TRUE, NULL, NULL, OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY, _T("Text Files(*.txt)|*.txt||"), this);	
 	    
do
{
    if (fileDlg.DoModal () == IDCANCEL) 		
        return;		
    
} while (fileDlg.GetFileExt() != _T("txt"));

SetDlgItemText(IDC_PATH, fileDlg.GetPathName());


[edit]
Alain's suggestion is a much better solution.
[/edit]

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Man who follows car will be exhausted." - Confucius


modified on Thursday, November 4, 2010 11:25 AM

AnswerRe: Query For CFileDialog? Pin
Alain Rist4-Nov-10 3:56
Alain Rist4-Nov-10 3:56 
QuestionError "string data,right truncated" generate when trying to Update by CRecordset? Pin
Le@rner3-Nov-10 18:57
Le@rner3-Nov-10 18:57 
AnswerRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
Stephen Hewitt3-Nov-10 19:33
Stephen Hewitt3-Nov-10 19:33 
GeneralRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
Le@rner3-Nov-10 19:34
Le@rner3-Nov-10 19:34 
AnswerRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
David Crow4-Nov-10 3:01
David Crow4-Nov-10 3:01 
QuestionInterlockedCompareExchange/cmpxchg-lock free queue Pin
Endaroza3-Nov-10 11:53
Endaroza3-Nov-10 11:53 
AnswerRe: InterlockedCompareExchange/cmpxchg-lock free queue Pin
Electron Shepherd3-Nov-10 13:52
Electron Shepherd3-Nov-10 13:52 
GeneralRe: InterlockedCompareExchange/cmpxchg-lock free queue [modified] Pin
Endaroza3-Nov-10 22:03
Endaroza3-Nov-10 22:03 
GeneralRe: InterlockedCompareExchange/cmpxchg-lock free queue Pin
federico.strati3-Nov-10 23:47
federico.strati3-Nov-10 23:47 
AnswerSolved !###$@#$ Pin
Endaroza4-Nov-10 0:01
Endaroza4-Nov-10 0:01 
QuestionFind Count Of Bytes Written To An IStream [modified] Pin
Frederick J. Harris3-Nov-10 8:38
Frederick J. Harris3-Nov-10 8:38 
AnswerRe: Find Count Of Bytes Written To An IStream Pin
Electron Shepherd3-Nov-10 11:34
Electron Shepherd3-Nov-10 11:34 
GeneralRe: Find Count Of Bytes Written To An IStream Pin
Frederick J. Harris3-Nov-10 13:45
Frederick J. Harris3-Nov-10 13:45 
AnswerRe: Find Count Of Bytes Written To An IStream Pin
Frederick J. Harris4-Nov-10 4:23
Frederick J. Harris4-Nov-10 4:23 
QuestionHow can use Time Out for any function or thread? Pin
Le@rner3-Nov-10 2:30
Le@rner3-Nov-10 2:30 
AnswerRe: How can use Time Out for any function or thread (URL checker) Pin
Moak3-Nov-10 2:44
Moak3-Nov-10 2:44 
AnswerRe: How can use Time Out for any function or thread? Pin
David Crow3-Nov-10 3:17
David Crow3-Nov-10 3:17 

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.