Okay thanks for that, now I am having a problem. How can I compare my results that I get?
I have a message box just under this code that prints the values for szPassword and szTempString and they both have the same values, but it treats it as if they were not equal.
if( dbFileExist( sBuffer ) == 1 )
{
dbOpenToRead( 1 , sBuffer );
szTempString = dbReadString( 1 );
if( szPassword == szTempString )
{
bLoggedIn = true;
}
else if( szPassword != szTempString )
{
bLoggedIn = false;
MessageBox( NULL , "Invalid username or password." , "Bad Login" ,
MB_OK | MB_ICONEXCLAMATION );
}
dbCloseFile( 1 );
dbDeleteFile( sBuffer );
}
EDIT:
I also have this problem now with writing to a file.
It doesnt write to the file!!!!
if( dbGetFTPFailure( ) == 1 )
{
iNewUser = MessageBox( NULL ,
"Alias does not exist, would you like to create it?" ,
"New User?" , MB_YESNO | MB_ICONQUESTION );
if( iNewUser == IDYES )
{
dbMakeFile( sBuffer );
dbOpenToWrite( 1 , sBuffer );
dbWriteString( 1 , szPassword );
dbCloseFile( 1 );
dbFTPPutFile( sBuffer );
}
}