Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Wince: How to use WinApi with qt?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Wince: How to use WinApi with qt?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rileo8
    wrote on last edited by
    #1

    Hi,

    i need to use some winapi funcionts into a wince qt project.
    if i try to use

    @HWND hTaskBarWnd = ::FindWindow(_T("HHTaskBar"), NULL);@

    to retrieve wince menubar id it gives me FindWindow identifier not found

    If i add

    @include <Winuser,h>@

    it gives me a lot of errors like BOOL identifier not found etc etc

    What ia have to do to use WinApi functions in a qt project?

    Thanks,
    Riccardo

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kaivolde
      wrote on last edited by
      #2

      Hi,

      there is a typo in your include (must be Winuser.h).
      (does it solve the problem?).

      When I used winapi-functions in a 'windows qt project' I included windows.h and it worked fine for me.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rileo8
        wrote on last edited by
        #3

        It works!

        Thanks a lot!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved