Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Wince: How to use WinApi with qt?
Qt 6.12 LTS is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 3.2k 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.
  • ? Offline
    ? Offline
    A Former User
    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
      • ? Offline
        ? Offline
        A Former User
        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
        • Unsolved