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

C / C++ / MFC

 
JokeRe: motion detection Pin
Rajesh R Subramanian12-Jan-07 2:26
professionalRajesh R Subramanian12-Jan-07 2:26 
AnswerRe: motion detection Pin
Cool Ju12-Jan-07 2:48
Cool Ju12-Jan-07 2:48 
GeneralRe: motion detection Pin
ceejeeb12-Jan-07 4:33
ceejeeb12-Jan-07 4:33 
GeneralRe: motion detection Pin
Cool Ju13-Jan-07 4:12
Cool Ju13-Jan-07 4:12 
AnswerRe: motion detection Pin
Hamid_RT22-May-07 19:23
Hamid_RT22-May-07 19:23 
QuestionTo check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 0:39
Suresh H12-Jan-07 0:39 
AnswerRe: To check and Create Folder in Win32 API Pin
CPallini12-Jan-07 0:55
mveCPallini12-Jan-07 0:55 
AnswerRe: To check and Create Folder in Win32 API Pin
Rajesh R Subramanian12-Jan-07 1:07
professionalRajesh R Subramanian12-Jan-07 1:07 
#include "shlwapi.h"

TCHAR szDir[20];

_tcscpy( szDir,_T("D:\\MyNewDir\\") );

if(!PathFileExists(szDir))<font color=green>//the directory already exists</font>
   if( CreateDirectory(szDir,NULL) )
         <font color=green>//MessageBox(NULL,_T("Created"),NULL,MB_OK);</font>


PS: You will need to link to shlwapi.lib for using PathFileExists()


Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா

GeneralRe: To check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 1:50
Suresh H12-Jan-07 1:50 
GeneralRe: To check and Create Folder in Win32 API Pin
Hamid_RT12-Jan-07 2:01
Hamid_RT12-Jan-07 2:01 
GeneralRe: To check and Create Folder in Win32 API Pin
Suresh H12-Jan-07 2:11
Suresh H12-Jan-07 2:11 
GeneralRe: To check and Create Folder in Win32 API Pin
PJ Arends12-Jan-07 9:36
professionalPJ Arends12-Jan-07 9:36 
AnswerRe: To check and Create Folder in Win32 API Pin
Hamid_RT12-Jan-07 1:14
Hamid_RT12-Jan-07 1:14 
AnswerRe: To check and Create Folder in Win32 API Pin
James R. Twine12-Jan-07 1:32
James R. Twine12-Jan-07 1:32 
AnswerRe: To check and Create Folder in Win32 API Pin
Cristian Amarie13-Jan-07 4:35
Cristian Amarie13-Jan-07 4:35 
QuestionRetrieve jpg file from Access database Pin
Vishvanathan12-Jan-07 0:39
Vishvanathan12-Jan-07 0:39 
QuestionRe: Retrieve jpg file from Access database Pin
CPallini12-Jan-07 3:01
mveCPallini12-Jan-07 3:01 
AnswerRe: Retrieve jpg file from Access database Pin
Vishvanathan12-Jan-07 4:01
Vishvanathan12-Jan-07 4:01 
QuestionGET_X_LPARAM Pin
Astricks12-Jan-07 0:08
Astricks12-Jan-07 0:08 
AnswerRe: GET_X_LPARAM Pin
toxcct12-Jan-07 0:22
toxcct12-Jan-07 0:22 
AnswerRe: GET_X_LPARAM Pin
CPallini12-Jan-07 0:34
mveCPallini12-Jan-07 0:34 
QuestionCWinThread and leak Pin
NorGUI11-Jan-07 23:39
NorGUI11-Jan-07 23:39 
AnswerRe: CWinThread and leak Pin
Cedric Moonen11-Jan-07 23:50
Cedric Moonen11-Jan-07 23:50 
GeneralRe: CWinThread and leak Pin
toxcct12-Jan-07 0:38
toxcct12-Jan-07 0:38 
GeneralRe: CWinThread and leak Pin
NorGUI12-Jan-07 0:54
NorGUI12-Jan-07 0:54 

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.