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?
Forum Updated to NodeBB v4.3 + New Features

Any need to configure for Win32?

Scheduled Pinned Locked Moved General and Desktop
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.
  • Z Offline
    Z Offline
    zither
    wrote on 19 Oct 2011, 01:39 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 19 Oct 2011, 02:21 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 19 Oct 2011, 02:58 last edited by
        #3

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

        1 Reply Last reply
        0

        1/3

        19 Oct 2011, 01:39

        • Login

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