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

C / C++ / MFC

 
AnswerRe: VS ANSI C++ implementation error? Pin
PJ Arends19-May-05 7:49
professionalPJ Arends19-May-05 7:49 
Generalsmall pointers problem Pin
Mridang Agarwalla19-May-05 5:16
Mridang Agarwalla19-May-05 5:16 
GeneralRe: small pointers problem Pin
David Crow19-May-05 5:47
David Crow19-May-05 5:47 
GeneralRe: small pointers problem Pin
RChin19-May-05 5:55
RChin19-May-05 5:55 
GeneralRe: small pointers problem Pin
ThatsAlok19-May-05 19:05
ThatsAlok19-May-05 19:05 
GeneralDirectory existance Pin
Imtiaz Murtaza19-May-05 5:13
Imtiaz Murtaza19-May-05 5:13 
GeneralRe: Directory existance Pin
Blake Miller19-May-05 5:16
Blake Miller19-May-05 5:16 
GeneralRe: Directory existance Pin
Ravi Bhavnani19-May-05 5:41
professionalRavi Bhavnani19-May-05 5:41 
//! 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

GeneralRe: Directory existance Pin
ThatsAlok19-May-05 18:25
ThatsAlok19-May-05 18:25 
GeneralProblem with controlling window media player Pin
JaniceA19-May-05 5:06
JaniceA19-May-05 5:06 
GeneralRun program on startup Pin
Zack Manning19-May-05 4:52
sussZack Manning19-May-05 4:52 
GeneralRe: Run program on startup Pin
Blake Miller19-May-05 5:18
Blake Miller19-May-05 5:18 
GeneralRe: Run program on startup Pin
ddmcr19-May-05 7:11
ddmcr19-May-05 7:11 
GeneralPolyBezier Pin
Anthony988719-May-05 4:37
Anthony988719-May-05 4:37 
GeneralRe: PolyBezier Pin
Joel Holdsworth19-May-05 6:51
Joel Holdsworth19-May-05 6:51 
GeneralHelp needed to fix warning C4251 Pin
Kri519-May-05 3:55
Kri519-May-05 3:55 
GeneralRe: Help needed to fix warning C4251 Pin
Alexander M.,19-May-05 4:22
Alexander M.,19-May-05 4:22 
GeneralRe: Help needed to fix warning C4251 Pin
Kri519-May-05 6:04
Kri519-May-05 6:04 
GeneralRe: Help needed to fix warning C4251 Pin
jmkhael19-May-05 6:32
jmkhael19-May-05 6:32 
GeneralRe: Help needed to fix warning C4251 Pin
Anonymous19-May-05 7:03
Anonymous19-May-05 7:03 
GeneralRe: Help needed to fix warning C4251 Pin
jmkhael19-May-05 7:18
jmkhael19-May-05 7:18 
GeneralRe: Help needed to fix warning C4251 Pin
Kri519-May-05 11:30
Kri519-May-05 11:30 
GeneralConnecting to another computer's shares as a different user Pin
Luis Mejia19-May-05 3:39
Luis Mejia19-May-05 3:39 
GeneralRe: Connecting to another computer's shares as a different user Pin
Blake Miller19-May-05 5:10
Blake Miller19-May-05 5:10 
GeneralRe: Connecting to another computer's shares as a different user Pin
David Crow19-May-05 5:51
David Crow19-May-05 5: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.