Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Displaying an html page in a window Derived from CWnd Pin
Hamid_RT12-Jan-07 6:29
Hamid_RT12-Jan-07 6:29 
AnswerRe: Displaying an html page in a window Derived from CWnd Pin
Gary R. Wheeler13-Jan-07 2:57
Gary R. Wheeler13-Jan-07 2:57 
QuestionHelp with MDI Apps with Picture Control Pin
kitty512-Jan-07 2:52
kitty512-Jan-07 2:52 
AnswerRe: Help with MDI Apps with Picture Control Pin
James R. Twine12-Jan-07 3:11
James R. Twine12-Jan-07 3:11 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty512-Jan-07 3:35
kitty512-Jan-07 3:35 
GeneralRe: Help with MDI Apps with Picture Control Pin
James R. Twine12-Jan-07 6:51
James R. Twine12-Jan-07 6:51 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty516-Jan-07 3:25
kitty516-Jan-07 3:25 
AnswerRe: Help with MDI Apps with Picture Control Pin
Hamid_RT12-Jan-07 17:34
Hamid_RT12-Jan-07 17:34 
GeneralRe: Help with MDI Apps with Picture Control Pin
kitty516-Jan-07 3:33
kitty516-Jan-07 3:33 
Questionmotion detection Pin
ceejeeb12-Jan-07 1:49
ceejeeb12-Jan-07 1:49 
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 

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.