Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Can't type "}" in Visual C++ 2010


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
13 replies to this topic

#1 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 09:16 AM

Basically what the title says. I can't typ the "}" curly bracket. The "{" works fine, nothing wrong the the keyboard button either since I can typ it here obviously :P

Tried googling it with no result. Using swedish keyboard btw but that shouldn't matter.

Sponsor:

#2 j-locke   Members   -  Reputation: 507

Like
0Likes
Like

Posted 01 July 2012 - 09:23 AM

Definitely sounds weird.
What happens when you do type "}"?
Does it put in a different character? Does it put in whitespace? Does it do nothing at all?

#3 pixelartist   Members   -  Reputation: 245

Like
0Likes
Like

Posted 01 July 2012 - 09:26 AM

Never heard of that one before. For the sake of completeness, can you copy and paste the character in?

#4 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 09:41 AM

Nothing happens when I try to type the character in. I can paste it in but I can't keep doing that when coding..reconsidering reinstalling visual c++ atm..

#5 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 09:56 AM

reinstallating visual c++ didn't help. No one knows a solution? :/

#6 Cornstalks   Moderator*   -  Reputation: 5387

Like
0Likes
Like

Posted 01 July 2012 - 10:01 AM

Try a different keyboard?
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#7 boogyman19946   Members   -  Reputation: 405

Like
0Likes
Like

Posted 01 July 2012 - 10:13 AM

Are you sure you're using the proper keyboard layout? Your physical keyboard might be Swedish but your OS can make pretend that it isn't. When you enter the editor, look at the task bar to see if you can find an icon with an abbreviation of the language you are using. I'm using a Polish (Programmers) layout so my icon appears as PL but when I switch to English it's EN. Swedish should show up as SV. If nothing shows up, find "Region and Language" in the control panel, select "Keyboard and Languages" tab, press "Change keyboard" and look there.

If you have a different language selected, switch back to Swedish by clicking on SV. If next to the SV is a little icon of a keyboard, you might have a different version of a Swedish layout, try changing that. Ultimately, you can access this feature in full in the control panel as "Region and Language" (I think it's a little different for Windows XP, but it still has language and region in the name).

Other than that, I've no idea Posted Image

Edited by boogyman19946, 01 July 2012 - 10:15 AM.

"If highly skilled generalists are rare, though, then highly skilled innovators are priceless." - ApochPiQ

My personal links :)
- Khan Academy - For all your math needs
- Java API Documentation - For all your Java info needs :D
- C++ Standard Library Reference - For some of your C++ needs ^.^

#8 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 10:54 AM

Tried a different keyboard and the layout is swedish (SV). This is so odd...
all other inputs works in visual c++ besides }

Edited by Ferazu, 01 July 2012 - 10:56 AM.


#9 Endurion   Members   -  Reputation: 2103

Like
0Likes
Like

Posted 01 July 2012 - 11:38 AM

Did you maybe assign a keyboard command to the key by accident?
Fruny: Ftagn! Ia! Ia! std::time_put_byname<wchar_t>! Mglui naflftagn std::codecvt<char,char,mbstate_t> eY'ha-nthlei!

#10 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 11:40 AM

Did you maybe assign a keyboard command to the key by accident?


I just checked there. I have reset the layout even tried assigning it to another command (like ctrl + shit + 0). It seems like I can input all other symbols besides "}". I'm really frustrated. Was planning to write codes couple of hours tonight...

Edited by Ferazu, 01 July 2012 - 11:41 AM.


#11 Ferazu   Members   -  Reputation: 148

Like
0Likes
Like

Posted 01 July 2012 - 11:57 AM

Decided to work with Code Blocks till I find a fix for this. Only thing I find when I google this matter is my own topic Posted Image

Edited by Ferazu, 01 July 2012 - 12:17 PM.


#12 Drew_Benton   Members   -  Reputation: 1691

Like
0Likes
Like

Posted 01 July 2012 - 01:57 PM

Here's something you can try, not sure if it'll work:

1. Download and install AutoHotKey: http://www.autohotkey.com/

2. Create a new AHK script and paste in the following contents:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

::}::{}}

3. Save and then execute the script (you will see a green H icon in your tasktray if it's running). To stop the script, right click on this icon and choose the appropriate context item.

4. Try using the } key in Visual Studio followed by another key to trigger the macro. For example, press } and then 'enter' or 'spacebar'..

The idea is to make use of Hotstrings to replace the keystroke itself with the text. With how AHK works, it should process the } before Visual Studio does (assuming Visual Studio is in fact eating the keystroke) and you should get the text to show up after the followup key stroke to trigger the macro.

Do you have any addons installed in Visual Studio? Perhaps a bug in one of those is causing a problem. You should also check your system for any system wide hooks or DLLs being loaded in AppInit_DLLs. Perhaps there is something that isn't compatible with Visual Studio, but is working fine with everything else.

"But I, being poor, have only my dreams. I have spread my dreams under your feet; tread softly, because you tread on my dreams." - William Butler Yeats

#13 eFoDay   Members   -  Reputation: 300

Like
1Likes
Like

Posted 01 July 2012 - 04:37 PM

I did a quick Google search and came up with this:

http://social.msdn.microsoft.com/Forums/is/vcgeneral/thread/ccba4e1a-85df-422d-bd41-d6c55bb7452c

maybe it will help.

#14 Olof Hedman   Members   -  Reputation: 1226

Like
0Likes
Like

Posted 23 September 2012 - 03:57 AM

I did a quick Google search and came up with this:

http://social.msdn.m...41-d6c55bb7452c

maybe it will help.


Thank you so much :)

Had this problem in Visual Studio 2012 Express too.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS