Hello
I am using carbide.vs (s60 2nd ed), I added a dialog resource (using the Add Fragment) , the code look like this
then added AknQueryDialog.h to the header file and avkon.lib to the linker dependencies, and used it as in the example dialog->ExecuteLD(pass_q) and still get the error:Code:/* Usage: #include <AknQueryDialog.h> // Link against: avkon.lib // Show dialog 'Enter password:' TBuf<8> input; // Max. length: 8 CAknTextQueryDialog* dialog = CAknTextQueryDialog::NewL(input); if (dialog->ExecuteLD(R_PASSWORD_TEXT_QUERY)) { // Ok } else { // Cancel } */ RESOURCE DIALOG pass_q { flags = EGeneralQueryFlags; buttons = R_AVKON_SOFTKEYS_OK_CANCEL; items = { DLG_LINE { type = EAknCtQuery; id = EGeneralQuery; control = AVKON_DATA_QUERY { layout = ECodeLayout; label = "Enter password:"; control = SECRETED; }; } }; }
Error 1 error: undefined identifier 'pass-q'
what i should do else to make the application see the resource !?!

Reply With Quote



