6 Replies - 4057 Views - Last Post: 14 July 2010 - 04:49 AM Rate Topic: -----

#1 Rekan  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 82
  • Joined: 19-August 09

how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 03:00 AM

hi guys i am wondering how to input with the keyboard, is there a way how to do it? i have looked up on the msdn.com which didnt help that much.

Thanks for your help :)
Is This A Good Question/Topic? 0
  • +

Replies To: how to progam keyboard input in windows form application in c++?

#2 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 765
  • View blog
  • Posts: 2,225
  • Joined: 20-March 10

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 03:06 AM

You can process keyboard messages with WM_KEYDOWN
But dream in code has a policy in which you have to post code to get help.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Toubabo Koomi
  • member icon

Reputation: 5182
  • View blog
  • Posts: 26,886
  • Joined: 10-May 07

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 03:08 AM

If this is a console application, I would suggest reading from the standard input stream.
Was This Post Helpful? 0
  • +
  • -

#4 Rekan  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 82
  • Joined: 19-August 09

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 04:13 AM

snoopy i meant if there is a using namespace for it and i am making a windows form application and they show only example for c# and the namespace for the keyboard input is only in c#
i only need to know the using namespace for keyboard input in c++ :)
Was This Post Helpful? 0
  • +
  • -

#5 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 04:20 AM

Windows Forms is .NET only. You cannot be using pure C++ and any .NET based API, so Windows Forms is out of the question.

Thus, either use C#, or don't use Windows Forms...
Was This Post Helpful? 0
  • +
  • -

#6 JITHU  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 62
  • View blog
  • Posts: 201
  • Joined: 02-July 07

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 04:28 AM

Or learn/use C++/CLI, but it has some small syntax changes.

In VS, you've to create a Windows Forms Application from Visual C++ >> CLR.
Was This Post Helpful? 0
  • +
  • -

#7 Rekan  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 82
  • Joined: 19-August 09

Re: how to progam keyboard input in windows form application in c++?

Posted 14 July 2010 - 04:49 AM

yes i am using VS c++
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1