×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    21

    unresolved external symbol CAknQueryControl::SetAndUseFlagsL

    Hello,

    When the linker tries to build my app I get:
    unresolved external symbol "public: void __thiscall CAknQueryControl::SetAndUseFlagsL(class TBitFlagsT<unsigned short>)".

    Code:

    CAknQueryControl* ctl = ...;
    ...
    TBitFlags16 flags;
    flags.Set(CAknQueryControl::EEditorIndicatorOff);
    flags.Set(CAknQueryControl::EPredictiveTextEntryPermitted);

    ctl->SetAndUseFlagsL(flags);
    ...

    NOTES:
    1. the call: ctl->SetPromptL(message); worked without any problem.
    2. I included avkon.lib into the '.mmp'.

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Hello,

    I'm not familiar with that class/SDK, but you as you can see from the header file SetAndUseFlagsL() is not exported method (IMPORT_C prefix is missing). That is the reason for 'unresolved external' error.

    Maybe you should use some readymade classes derived from CAknQueryControl, e.g. CAknNumberQueryDialog, or just implement your own version which is also derived from CAknQueryControl class. My quess is that CAknQueryControl is meant to be used only as a base class for other classes.

    What information you are trying to query by the user ?

    See also this:
    http://discussion.forum.nokia.com/fo...ueryControl%2A

    Br V

Posting Permissions

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