Click here to Skip to main content
15,895,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
«_Superman_»15-Jun-09 19:51
professional«_Superman_»15-Jun-09 19:51 
AnswerRe: Reg. Error C2440 in visual studio 2008.... Pin
Stuart Dootson15-Jun-09 22:05
professionalStuart Dootson15-Jun-09 22:05 
QuestionPreTranslateMessage in ActiveX Control Class Pin
Nishad S15-Jun-09 19:43
Nishad S15-Jun-09 19:43 
QuestionFunction Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 18:46
Rajdeep.NET15-Jun-09 18:46 
AnswerRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 18:55
professional«_Superman_»15-Jun-09 18:55 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 19:26
Rajdeep.NET15-Jun-09 19:26 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 19:29
professional«_Superman_»15-Jun-09 19:29 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 20:42
Rajdeep.NET15-Jun-09 20:42 
This is what I am trying to program

// Code in C#

public void function01()
try
{
if (File.Exists(@"C:\\file1.txt) // Checks if file1.txt exists
{
File.Delete(@"C:\\file1.txt");//If found, deletes file1.txt
}
catch{};

}
else
function02(); // calls function02
}
public void function02()
{
function01();// calls function01 in recursive way
}


Dear friend, as you can see here, that its all about recursion. Actually I am trying to create a program which will continuously check if a certain file exists in the specific location and if finds it, the program will delete that file. However, it will go on continuing this, which will block the user from creating any such file with the name as 'file1.txt'. I hope you got my point.

Please help,
Rajdeep.NET. Hmmm | :| Frown | :( Sigh | :sigh:

Always ready to help (if possible, often I am a NooB!) and be helped!

GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»15-Jun-09 22:31
professional«_Superman_»15-Jun-09 22:31 
GeneralRe: Function Call in C++ (Newbie question) Pin
Rajdeep.NET15-Jun-09 23:56
Rajdeep.NET15-Jun-09 23:56 
GeneralRe: Function Call in C++ (Newbie question) Pin
«_Superman_»16-Jun-09 0:00
professional«_Superman_»16-Jun-09 0:00 
GeneralOT: Rajdeep.Net Pin
EliottA23-Jun-09 5:24
EliottA23-Jun-09 5:24 
GeneralRe: OT: Rajdeep.Net Pin
«_Superman_»23-Jun-09 16:17
professional«_Superman_»23-Jun-09 16:17 
GeneralRe: OT: Rajdeep.Net Pin
Rajesh R Subramanian28-Jul-09 0:29
professionalRajesh R Subramanian28-Jul-09 0:29 
GeneralRe: OT: Rajdeep.Net Pin
ThatsAlok21-Jun-12 21:34
ThatsAlok21-Jun-12 21:34 
QuestionRe: Function Call in C++ (Newbie question) Pin
David Crow16-Jun-09 2:57
David Crow16-Jun-09 2:57 
AnswerRe: Function Call in C++ (Newbie question) Pin
molesworth16-Jun-09 3:36
molesworth16-Jun-09 3:36 
QuestionProblem running while and scanf Pin
Denis J. González15-Jun-09 18:37
Denis J. González15-Jun-09 18:37 
AnswerRe: Problem running while and scanf Pin
«_Superman_»15-Jun-09 19:04
professional«_Superman_»15-Jun-09 19:04 
GeneralRe: Problem running while and scanf Pin
Denis J. González15-Jun-09 19:08
Denis J. González15-Jun-09 19:08 
GeneralRe: Problem running while and scanf Pin
«_Superman_»15-Jun-09 19:24
professional«_Superman_»15-Jun-09 19:24 
Questionoffice automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
soosun115-Jun-09 14:18
soosun115-Jun-09 14:18 
AnswerRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
Stuart Dootson15-Jun-09 14:59
professionalStuart Dootson15-Jun-09 14:59 
AnswerRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
«_Superman_»15-Jun-09 16:24
professional«_Superman_»15-Jun-09 16:24 
GeneralRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? [modified] Pin
soosun116-Jun-09 4:49
soosun116-Jun-09 4:49 

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.