Click here to Skip to main content
15,891,847 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help wit daata type conversion Pin
normanS21-May-06 19:42
normanS21-May-06 19:42 
GeneralRe: need help wit daata type conversion Pin
neodeaths22-May-06 7:19
neodeaths22-May-06 7:19 
Questionchecking if a folder exists or not Pin
sudeep_br20-May-06 18:03
sudeep_br20-May-06 18:03 
AnswerRe: checking if a folder exists or not Pin
Chris Losinger20-May-06 18:28
professionalChris Losinger20-May-06 18:28 
AnswerRe: checking if a folder exists or not Pin
eli1502197920-May-06 21:13
eli1502197920-May-06 21:13 
GeneralRe: checking if a folder exists or not Pin
sudeep_br20-May-06 23:49
sudeep_br20-May-06 23:49 
AnswerRe: checking if a folder exists or not Pin
Hamid_RT20-May-06 21:21
Hamid_RT20-May-06 21:21 
AnswerRe: checking if a folder exists or not Pin
rbid20-May-06 21:38
rbid20-May-06 21:38 
Another way to do it: Using CFileStatus from MFC..

CString folderPath = _T("C:\\DK\\Index");

CFileStatus status;
if(!CFile::GetStatus( folderPath, status ) )   // static function
{
    AfxMessageBox(_T("Directory does not exist.(\"") + folderPath + _T("\")\n"),
                  MB_OK|MB_ICONINFORMATION);
    ...
}


The use of _access (posted by Chris Losinger) may be more suitable for your needs.


-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard

My articles
AnswerRe: checking if a folder exists or not Pin
knoxplusplus23-May-06 7:26
knoxplusplus23-May-06 7:26 
QuestionRelevancy of C structures [modified] Pin
Sam Hobbs20-May-06 17:48
Sam Hobbs20-May-06 17:48 
AnswerRe: Relevancy of C structures [modified] Pin
bob1697220-May-06 18:36
bob1697220-May-06 18:36 
GeneralRe: Relevancy of C structures [modified] Pin
Sam Hobbs21-May-06 4:59
Sam Hobbs21-May-06 4:59 
GeneralRe: Relevancy of C structures [modified] Pin
bob1697221-May-06 15:57
bob1697221-May-06 15:57 
GeneralRe: Relevancy of C structures [modified] Pin
Sam Hobbs21-May-06 17:05
Sam Hobbs21-May-06 17:05 
AnswerRe: Relevancy of C structures [modified] Pin
James Brown20-May-06 23:48
James Brown20-May-06 23:48 
GeneralRe: Relevancy of C structures [modified] Pin
Sam Hobbs21-May-06 4:57
Sam Hobbs21-May-06 4:57 
QuestionScreen Recording Pin
CNewbie20-May-06 12:36
CNewbie20-May-06 12:36 
GeneralRe: Screen Recording Pin
User 171649220-May-06 13:04
professionalUser 171649220-May-06 13:04 
GeneralRe: Screen Recording Pin
CNewbie20-May-06 13:21
CNewbie20-May-06 13:21 
QuestionDoc-View and NewFile Pin
faroo2820-May-06 9:26
faroo2820-May-06 9:26 
AnswerRe: Doc-View and NewFile Pin
Neville Franks20-May-06 13:02
Neville Franks20-May-06 13:02 
GeneralRe: Doc-View and NewFile Pin
faroo2821-May-06 13:45
faroo2821-May-06 13:45 
Questionmd5? Pin
flyskytoday20-May-06 5:36
flyskytoday20-May-06 5:36 
AnswerRe: md5? Pin
Chris Losinger20-May-06 6:33
professionalChris Losinger20-May-06 6:33 
GeneralRe: md5? Pin
flyskytoday21-May-06 3:51
flyskytoday21-May-06 3:51 

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.