I'm trying to check whats entered in an edit box with the contentes of a file like a password but this doesn't seem to work right, heres what i have.
char PassEntered[50];
char CorrectPass[50];
FILE *PassChk;
PassChk = fopen("PassChk.dat", "r");
fgets(CorrectPass,50,PassChk);
GetWindowText(pass,PassEntered,50);
if(CorrectPass == PassEntered)
{
SetWindowText(hwnd, "Correct");
}
else
{
SetWindowText(hwnd, "InCorrect");
}
fclose(PassChk);