Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Any need to configure for Win32?
QtWS25 Last Chance

Any need to configure for Win32?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.2k Views
  • 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.
  • Z Offline
    Z Offline
    zither
    wrote on last edited by
    #1

    Dear all,

    I'm developing an application using Win32 API with Qt.

    I used an structure from winuser.h namely KEYBDINPUT.

    I included windows.h (its doc in MSDN says it's enough). I used KBDLLHOOKSTRUCT which is also in winuser.h & it's fine.
    In winuser.h, it's defined as with #if clause. So, am I need to redefine WINVER ?
    How to define that?

    @#if (_WIN32_WINNT >= 0x0403)
    typedef struct tagKEYBDINPUT {
    WORD wVk;
    WORD wScan;
    DWORD dwFlags;
    DWORD time;
    ULONG_PTR dwExtraInfo;
    } KEYBDINPUT,*PKEYBDINPUT;@

    Thanks

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zither
      wrote on last edited by
      #2

      ok.

      I define like that.
      @#define _WIN32_WINNT 0x0500@

      But, I would like to know how to set current windows version?

      Thanks

      1 Reply Last reply
      0
      • P Offline
        P Offline
        p-himik
        wrote on last edited by
        #3

        If i recall correctly you have to include windows.h before any other windows headers.

        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