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

C / C++ / MFC

 
Questioncouldn't install vc++ 2008? Pin
gentleguy12-Jun-08 1:56
gentleguy12-Jun-08 1:56 
QuestionRe: couldn't install vc++ 2008? Pin
CPallini12-Jun-08 2:39
mveCPallini12-Jun-08 2:39 
AnswerRe: couldn't install vc++ 2008? Pin
theCPkid12-Jun-08 3:06
theCPkid12-Jun-08 3:06 
AnswerRe: couldn't install vc++ 2008? Pin
Mark Salsbery12-Jun-08 6:11
Mark Salsbery12-Jun-08 6:11 
GeneralRe: couldn't install vc++ 2008? Pin
led mike12-Jun-08 6:48
led mike12-Jun-08 6:48 
QuestionHow to search and delete a file Pin
Shirani12-Jun-08 1:18
Shirani12-Jun-08 1:18 
AnswerRe: How to search and delete a file Pin
_AnsHUMAN_ 12-Jun-08 1:44
_AnsHUMAN_ 12-Jun-08 1:44 
AnswerRe: How to search and delete a file Pin
vijay_aroli12-Jun-08 2:36
vijay_aroli12-Jun-08 2:36 
If you already know the path of the file to be deleted, then you don't have to search for it. You can use PathFileExists() function to see if the file exists. you can also use the function PathIsDirectory() to see if given path is that of a directory or a file. The below code snippet might make the point clear to you.

TCHAR szFilePath[MAX_PATH];
_tcscpy(szFilePath, _T("C:\\file.txt") );

//Check if the file with the given path really exists and is not a directory.
if(PathFileExists(szFilePath) && !PathIsDirectory(szFilePath))
      DeleteFile(szFilePath);//delete the file 'C:\file.txt'


Regards,
Vijay.

GeneralRe: How to search and delete a file Pin
Shirani12-Jun-08 6:39
Shirani12-Jun-08 6:39 
GeneralRe: How to search and delete a file Pin
Eytukan12-Jun-08 7:52
Eytukan12-Jun-08 7:52 
QuestionAfxCallWndProc and custom control development Pin
sawerr12-Jun-08 1:11
sawerr12-Jun-08 1:11 
QuestionHow can I get byte pointers to give CString values ? Pin
SherTeks12-Jun-08 0:56
SherTeks12-Jun-08 0:56 
AnswerRe: How can I get byte pointers to give CString values ? Pin
SandipG 12-Jun-08 2:09
SandipG 12-Jun-08 2:09 
GeneralRe: How can I get byte pointers to give CString values ? Pin
RockyJames12-Jun-08 2:12
RockyJames12-Jun-08 2:12 
GeneralRe: How can I get byte pointers to give CString values ? Pin
SandipG 12-Jun-08 2:16
SandipG 12-Jun-08 2:16 
GeneralRe: How can I get byte pointers to give CString values ? Pin
RockyJames12-Jun-08 3:11
RockyJames12-Jun-08 3:11 
AnswerRe: How can I get byte pointers to give CString values ? Pin
SherTeks12-Jun-08 21:26
SherTeks12-Jun-08 21:26 
QuestionLogin& Logout Time Pin
leonigah12-Jun-08 0:53
leonigah12-Jun-08 0:53 
AnswerRe: Login& Logout Time Pin
Nibu babu thomas12-Jun-08 3:04
Nibu babu thomas12-Jun-08 3:04 
GeneralRe: Login& Logout Time Pin
leonigah12-Jun-08 20:28
leonigah12-Jun-08 20:28 
GeneralRe: Login& Logout Time Pin
leonigah12-Jun-08 20:28
leonigah12-Jun-08 20:28 
QuestionRe: Login& Logout Time Pin
Nibu babu thomas12-Jun-08 20:49
Nibu babu thomas12-Jun-08 20:49 
AnswerRe: Login& Logout Time Pin
David Crow12-Jun-08 4:03
David Crow12-Jun-08 4:03 
AnswerRe: Login& Logout Time Pin
leonigah12-Jun-08 23:51
leonigah12-Jun-08 23:51 
QuestionHow can get value of keyboard pressed key? Pin
Le@rner11-Jun-08 23:59
Le@rner11-Jun-08 23:59 

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.