473,513 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c/c++ function for keyboard layout

50 New Member
Hey guys.

I'm really stuck on the keyboard problems. Is there any c/c++ functions, or methods :-), to know the physical layout of the keyboards. Thanks
May 30 '08 #1
5 4215
oler1s
671 Recognized Expert Contributor
I could have sworn I answered your question. Did you delete your question and then repost it? If so, did you see my previous answer? I’m seriously asking the question.
May 30 '08 #2
leejwen
50 New Member
I could have sworn I answered your question. Did you delete your question and then repost it? If so, did you see my previous answer? I’m seriously asking the question.
I feel strange too. I did post a similar one, but it disappeared. I guess It could be I post it in wrong category. Could you please answer it again? Many thanks!
Jun 2 '08 #3
oler1s
671 Recognized Expert Contributor
The answer is, neither C nor C++ itself has a concept of a keyboard. If you want to know about the current keyboard configuration or layout, you’ll have to look at what facilities the OS provides. All three major desktop platforms, Windows, Macs, and Linux, should have some sort of C API for determining the keyboard configuration.
Jun 2 '08 #4
leejwen
50 New Member
The answer is, neither C nor C++ itself has a concept of a keyboard. If you want to know about the current keyboard configuration or layout, you’ll have to look at what facilities the OS provides. All three major desktop platforms, Windows, Macs, and Linux, should have some sort of C API for determining the keyboard configuration.
My programming is based on Windows. It seems I can get the message of each key, althogh it cost lots of ''if else''. But again, what I really need is the physical layout, how do you know which key is near which key?

Many thanks!
Jun 3 '08 #5
oler1s
671 Recognized Expert Contributor
Oops, sorry for taking so long to respond.

But again, what I really need is the physical layout, how do you know which key is near which key?
I don’t believe you can find this information out. Keyboard layouts can vary quite a bit (see laptop keyboards), so trying to deduce what set of keys are near to each other, or even what keys are present, is a bad idea.
Jun 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

30
2278
by: ajsiegel | last post by:
Arthur wrote: >> And either intuitively, or consciously, he is doing something that >> offsets it from something truly intergrated into the core of the >> language. By breakling all of his own...
0
1188
by: Sanjeev | last post by:
Hi, I was wondering how VC++ developers are reacting to the new keyboard layout in .Net IDE. I am very un-happy. However they do have an option to select different settings, but I don't know...
2
3326
by: Rudi | last post by:
Hello all, posting my question in this newsgroup is about the last alternative I can think of to resolve my problem. The standard keyboard layout in the office is AZERTY. Still, my access xp...
0
926
by: hadi_ghanaty | last post by:
how i can change keyboard layout in program
1
2875
by: Lacka | last post by:
Hi, Is it possible, to change the keyboard layout on an asp.net page? I have two textboxes: one for the greek text, and one for the hungarian. If the greek gets the focus, it would be nice to...
1
7330
by: Aftab Alam | last post by:
Hello All I want to change the keyboard layout dynaically, ie if a use focuses on my application the keyboard layout gets set to Arabic and if on any other application it should be english ?? How...
2
12103
by: Dan | last post by:
Sorry if this post may sound a bit off-topic, but I could not find a specialized newsgroup. I have created a dotnet 2.0 library containing some user controls and written in C#. One of the controls...
2
1418
by: news.microsoft.com | last post by:
Hi Is there any way to change the keyboard layout when a TextBox on an ASPX page gets the focus? Regards, Mystique
0
3615
by: rgsoftware | last post by:
Hello! I am looking for a way to add/remove a new keyboard layout programmatically. It should work identically to opening regional options in control panel manually and adding a new input...
3
3784
tpgames
by: tpgames | last post by:
I'm looking for a program or command line or anything that would allow me to have more than the maximum 4 keyboard layout language groups that keyboard preferences in Ubuntu restricts me too. I can...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.