none
ERROR: Unresolved External Symbol GetCursosPos referenced in function RRS feed

  • Question

  • Hi,

    I have

    1. included "windows.h"

    2. inserted this into the sources file:
      

    SOURCELIBS=$(_PUBLICROOT)\common\oak\lib\armv7\debug\cursor.lib \
               $(_PUBLICROOT)\common\oak\lib\armv7\debug\Mcursor.lib \

    Nothing seems to help. So what can be wrong?

    Thanks

    Monday, September 19, 2011 12:44 PM

Answers

  • You need SYSGEN_TOUCH and/or SYGEN_CURSOR to be set for the cursor APIs to be available in coredll.dll.
    Henrik Viklund | Windows Embedded MVP | http://www.addlogic.se
    • Proposed as answer by Luca Calligaris Tuesday, September 20, 2011 6:32 AM
    • Marked as answer by Jker Tuesday, September 20, 2011 8:43 AM
    Tuesday, September 20, 2011 6:27 AM

All replies

  •  

    Cursor functions are exported by coredll so having

      

    TARGETLIBS=\
        $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib

    should be enough
     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Monday, September 19, 2011 1:22 PM
  • Strangely enough it only gets compiled when SYSGEN_STANDARDSHELL is set. Perhaps it has some dependency on a certain catalog item. I don't know and have no explanation for that. It gets compiled with the standard shell  but gives this error message (about GetCursorPos) without the standard shell. coredll.lib has been all the time in the sources file...
    Monday, September 19, 2011 1:59 PM
  • You need SYSGEN_TOUCH and/or SYGEN_CURSOR to be set for the cursor APIs to be available in coredll.dll.
    Henrik Viklund | Windows Embedded MVP | http://www.addlogic.se
    • Proposed as answer by Luca Calligaris Tuesday, September 20, 2011 6:32 AM
    • Marked as answer by Jker Tuesday, September 20, 2011 8:43 AM
    Tuesday, September 20, 2011 6:27 AM
  • Henrik is right as you can see from coredll.def:

    ; @CESYSGEN IF GWES_CURSOR OR GWES_MCURSOR
       SetCursor @682
       LoadCursorW @683
       ClipCursor @731
       GetClipCursor @732
       GetCursor @733
       GetCursorPos @734
       SetCursorPos @736
       ShowCursor @737
       LoadAnimatedCursor @1493
    ; @CESYSGEN ENDIF

    I did not check but I guess that including the standard shell will implicitely include the cursor components


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Tuesday, September 20, 2011 6:32 AM