Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SendInput problem

SendInput problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
2 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    Cyberizen
    wrote on last edited by
    #1

    HI Well this SendInput function is giving :mad::mad:me a lot of problems i cannot declare KEYBDINPUT and INPUT types VC++ gives me error saying "Undeclared Identifier" i have include "winuser.h" as well as "wndows.h" even checked on the library settings "user32.lib" but no luck still giving me the error i know the syntax but i find myself in a helpless situation please help me out here i even tried this ::KEYBDINPUT but it still gives me error concerning the namespace i dont know wat to do please help me out and yes i am working on windows xp and using visual C++ ver 6.0 i hope these are enuff clues to help u guys figure out the problem THANKS IN ADVANCE

    R 1 Reply Last reply
    0
    • C Cyberizen

      HI Well this SendInput function is giving :mad::mad:me a lot of problems i cannot declare KEYBDINPUT and INPUT types VC++ gives me error saying "Undeclared Identifier" i have include "winuser.h" as well as "wndows.h" even checked on the library settings "user32.lib" but no luck still giving me the error i know the syntax but i find myself in a helpless situation please help me out here i even tried this ::KEYBDINPUT but it still gives me error concerning the namespace i dont know wat to do please help me out and yes i am working on windows xp and using visual C++ ver 6.0 i hope these are enuff clues to help u guys figure out the problem THANKS IN ADVANCE

      R Offline
      R Offline
      RicoH
      wrote on last edited by
      #2

      You don't need to include 'winuser.h' since it is already included in 'windows.h'. The only thing you need to do is add the following line of code BEFORE you include 'windows.h'. So your code should like this: #define _WIN32_WINNT 0x0500 #include <windows.h> Hope this gets you along... RicoH Don't think you are, know you are...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups