×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    101

    Checking input text password key problem in CAknTextQueryDialog

    I'm making code for checking license to access my application. The Problem is checking password key fail. I try to input correct password key in query dialog, result is show "Incorrect Code!" following my code below. I try to put
    another method by setting direct password to TBuf like _L("4fd7") it's work. Can anybody help me for solve this?

    TBuf<6> unlockCode;
    unlockCode.Copy(iUnlockCode); //iUnlockCode store in ini data type HBufC8

    PrintWithNotifierS(unlockCode);//Print show corect store password

    TBuf<6> password;
    CAknTextQueryDialog* dlgPass = new (ELeave) CAknTextQueryDialog(password);
    dlgPass->SetPromptL(_L("Enter unlock code"));
    if (! dlgPass->ExecuteLD(R_DIALOG_TEXT_EDIT_QUERY))
    {
    return;
    }
    // Authenticate password

    if(unlockCode ==password) //Proplem
    {
    CAknInformationNote* note = new ( ELeave ) CAknInformationNote;
    note->ExecuteLD( _L("Congratulation!") );
    iSettingData->SetRegistration(1);
    }
    else
    {
    CAknInformationNote* note = new ( ELeave ) CAknInformationNote;
    note->ExecuteLD( _L("Incorrect Code!") );
    iSettingData->SetRegistration(0);
    }
    Thanks in advance,
    Mozart

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Checking input text password key problem in CAknTextQueryDialog

    You may try "PrintWithNotifierS(password);" would print.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    101

    Re: Checking input text password key problem in CAknTextQueryDialog

    Quote Originally Posted by wizard_hu_ View Post
    You may try "PrintWithNotifierS(password);" would print.
    I have found the solution by return value from function like this.

    if(PasswordL()==password)

    Thank you for reply me,

    Mozart

Similar Threads

  1. Problem In Mapping physical key mapping with logical key
    By amatra in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-11-26, 12:55
  2. Stupid problem with password in CreateSis
    By patrickfrei in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-11-28, 20:54
  3. Problem in setting Password
    By SachinKumar in forum Symbian
    Replies: 0
    Last Post: 2005-06-21, 14:38
  4. Force text input in CEikEdwin via Serie60 keypad
    By Holler in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-08-16, 08:25
  5. Problem with Greek Characters on Input
    By Nokia_Archived in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-15, 00:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×