Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Button Pin
rocky_pulley10-Feb-05 5:04
rocky_pulley10-Feb-05 5:04 
GeneralRe: CListCtrl Button Pin
rlepine10-Feb-05 5:20
rlepine10-Feb-05 5:20 
Generalmsxml 3.0 , used for xml creation , error description Pin
cj_rahul10-Feb-05 3:49
cj_rahul10-Feb-05 3:49 
GeneralRe: msxml 3.0 , used for xml creation , error description Pin
ThatsAlok10-Feb-05 18:54
ThatsAlok10-Feb-05 18:54 
QuestionHow To Get know if Directory Exists? Pin
Rassul Yunussov9-Feb-05 23:37
Rassul Yunussov9-Feb-05 23:37 
AnswerRe: How To Get know if Directory Exists? Pin
Chris Losinger10-Feb-05 3:52
professionalChris Losinger10-Feb-05 3:52 
AnswerRe: How To Get know if Directory Exists? Pin
Blake Miller10-Feb-05 4:18
Blake Miller10-Feb-05 4:18 
AnswerRe: How To Get know if Directory Exists? Pin
Ravi Bhavnani10-Feb-05 6:44
professionalRavi Bhavnani10-Feb-05 6:44 
//! Checks whether a directory exists.
//! @param  strDirectory  Directory
//! @return true if the directory exists, false otherwise.
bool dirExists
  (CString strDirectory)
{
  // Create full directory specification - return if unable
  TCHAR* fullPath = _tfullpath (NULL, strDirectory, 0);
  if (fullPath == NULL)
     return (false);
 
  // Check if directory exists by trying to make it the default directory
  TCHAR szCurrDir [_MAX_PATH];
  _tgetcwd (szCurrDir, _MAX_PATH - 1);
  long nStatus = _tchdir (fullPath);
  _tchdir (szCurrDir);
 
  // Return
  free (fullPath);    
  if (nStatus == 0)
     return (true);
  return (false);
}
/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

AnswerRe: How To Get know if Directory Exists? Pin
Michael Dunn10-Feb-05 10:16
sitebuilderMichael Dunn10-Feb-05 10:16 
GeneralHelp in adding a new display mode!!!Crazy Pin
uday__m9-Feb-05 23:15
uday__m9-Feb-05 23:15 
Questionhow to pack bitmaps in a dll Pin
Anonymous9-Feb-05 23:02
Anonymous9-Feb-05 23:02 
AnswerRe: how to pack bitmaps in a dll Pin
2249179-Feb-05 23:07
2249179-Feb-05 23:07 
GeneralUDP message reply Pin
Anonymous9-Feb-05 22:58
Anonymous9-Feb-05 22:58 
Generalsorting elements in double pointer Pin
tttyip9-Feb-05 20:35
tttyip9-Feb-05 20:35 
GeneralRe: sorting elements in double pointer Pin
David Crow10-Feb-05 9:26
David Crow10-Feb-05 9:26 
GeneralRe: sorting elements in double pointer Pin
tttyip22-Feb-05 2:32
tttyip22-Feb-05 2:32 
GeneralRe: sorting elements in double pointer Pin
David Crow22-Feb-05 3:36
David Crow22-Feb-05 3:36 
GeneralVisual Studio .Net hangs system during debugging. Pin
Brian van der Beek9-Feb-05 20:03
Brian van der Beek9-Feb-05 20:03 
GeneralRe: Visual Studio .Net hangs system during debugging. Pin
2249179-Feb-05 21:34
2249179-Feb-05 21:34 
GeneralRe: Visual Studio .Net hangs system during debugging. Pin
Joel Lucsy13-Feb-05 14:29
Joel Lucsy13-Feb-05 14:29 
GeneralShellExecute, it is not working Pin
Aqueel9-Feb-05 19:17
Aqueel9-Feb-05 19:17 
GeneralRe: ShellExecute, it is not working Pin
Blake Miller10-Feb-05 4:46
Blake Miller10-Feb-05 4:46 
GeneralRe: ShellExecute, it is not working Pin
Aqueel10-Feb-05 16:31
Aqueel10-Feb-05 16:31 
GeneralRe: ShellExecute, it is not working Pin
Yulianto.10-Feb-05 16:48
Yulianto.10-Feb-05 16:48 
GeneralRe: ShellExecute, it is not working Pin
Blake Miller11-Feb-05 4:10
Blake Miller11-Feb-05 4:10 

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.