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

C / C++ / MFC

 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 7:20
a random user24-May-15 7:20 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 21:36
mveRichard MacCutchan24-May-15 21:36 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 2:24
a random user25-May-15 2:24 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan25-May-15 2:33
mveRichard MacCutchan25-May-15 2:33 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 2:59
a random user25-May-15 2:59 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan25-May-15 3:25
mveRichard MacCutchan25-May-15 3:25 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 3:34
a random user25-May-15 3:34 
QuestionC language Help using Dirent.h Pin
a random user22-May-15 6:24
a random user22-May-15 6:24 
SuggestionRe: C language Help using Dirent.h Pin
Richard MacCutchan22-May-15 7:19
mveRichard MacCutchan22-May-15 7:19 
AnswerRe: C language Help using Dirent.h Pin
k505422-May-15 7:37
mvek505422-May-15 7:37 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 1:06
a random user23-May-15 1:06 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 2:15
mveRichard MacCutchan23-May-15 2:15 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 2:56
a random user23-May-15 2:56 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 3:04
mveRichard MacCutchan23-May-15 3:04 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 3:08
a random user23-May-15 3:08 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 3:45
a random user23-May-15 3:45 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 6:27
mveRichard MacCutchan23-May-15 6:27 
QuestionRe: C language Help using Dirent.h Pin
a random user23-May-15 9:47
a random user23-May-15 9:47 
AnswerRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 20:58
mveRichard MacCutchan23-May-15 20:58 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 23:05
a random user23-May-15 23:05 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 23:19
a random user23-May-15 23:19 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 2:08
a random user24-May-15 2:08 
Go to ParentNow that I fixed most of the code the last part is which is the loop to find out the name of the second folder

Reminder that The argv has a path to a folder
the program is trying to exit the folder to the fodler before (succeeded)
and now at the last part trying to get the path for the second folder and the file before if it makes any sence

so for some odd reason it doesnt work
the weirder part is when i try to do puts(); on the Dir struct d_name
and it triggers break point


Hide Copy Code
//UnwatedName = /C2_Mid_Anti-Virus_Project.zip notPath1 = '.' notPath2=".."


while (OtherEnt = readdir(OtherDir))
{

puts(OtherEnt->d_name);

if ((OtherEnt->d_name != UnwantedName) && (OtherEnt->d_name != notPath1) && (OtherEnt->d_name != notPath2))
{
puts(OtherEnt->d_name);
strcpy(InfectedFolderPath, entrenceToTheFolderBefore);
strcat(InfectedFolderPath, "/");
strcat(InfectedFolderPath, OtherEnt->d_name);
puts(InfectedFolderPath);

}



}
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan24-May-15 2:19
mveRichard MacCutchan24-May-15 2:19 
GeneralRe: C language Help using Dirent.h Pin
a random user24-May-15 2:51
a random user24-May-15 2:51 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan24-May-15 3:08
mveRichard MacCutchan24-May-15 3:08 

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.