I have a really big problem. Visual studio 2010 does not create C++ projects any more. When I click to create a new C++ project (no matter console or Win32) it shows the next dialog, which should allow me to choose project settings, but I cannot do anything in this dialog (when I click Cancel or Finish nothing happens, I can just close this window), also, this dialog does not show all settings, like it had.
Non-C++ project are being created successfully.
I've installed a VC++ express, but it has the same problem. Class creation window also has this problem.
I tryed to reinstall VS, but it had no effect.
I tryed to launch from VS console devenv.exe /setup and devenv.exe /InstallVSTemplates
I tryed this
This is a screeshot of project creation dialog (labels are in russian, but you can open this window in your VS to see the difference)
UPD: translated window:
UPD:
Skype main window has a problem - it does not display any contensts. It seems, that problem is in IE
Yes, these wizard pages use HTML and javascript and are displayed by an embedded WebBrowser.
Your IE install is messed up.
Related
I click on new project. Select win32 console application. Click on ok. New project window disappears. 1 second later it is there again, without a new project.
I'm assuming you're familiar with project creation and have already done it with a different version of VStudio.
Its possible your wizard templates are corrupted. If you are unable to create any other type of project then it most definitely is.
Run the installer again and attempt a repair.
But if you are not familiar with project creation then just follow the wizard and you should have a project being created.
I'm really new to visual studio and programming in general. I'm using Visual Studio Community 2015 Desktop Version (from what I know).
I can't find a Windows Forms Application from the C++ category, while there is one for C#.
Can anyone help, do I need to download another version, a plugin, or anything?
Sorry if a stupid question, I just really can't figure it out!
There are no C++ Windows Form templates in Visual Studio 2015. As I see it, you have two choices:
When creating a new project, You will see an online dropdown, click that and try to search for "C++ Windows Forms".
Create an empty C++ CLR project and add a Windows Forms to it. This link puts it like this (credit to the onContentStop, the user who posted this):
Make a "CLR Empty Project".
Press Ctrl-Shift-A and create a Windows Form (under UI).
Inside the CPP file that is created, paste this code, replacing anything in square brackets except [STAThread] with the appropriate names:
#include "[FORM NAME].h"
using namespace System;
using namespace System::Windows::Forms;
[STAThread]//leave this as is
void main(array<String^>^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew [PROJECT NAME]::[FORM NAME]);
}
Right click your project in the Solution Explorer and click Properties.
Under Configuration Properties > Linker > Advanced, change Entry Point to "main" (without quotation marks).
Under Configuration Properties > Linker > System, change SubSystem to "Windows (/SUBSYSTEM:WINDOWS)" (without quotation marks).
Though this has already been answered, I feel like this might help those who stumble across this in the future. While creating a new project, directly above the text field for naming your project, there is a blue link that reads "Click here to go online and find templates" If you click that link it will direct you to templates that are available for you to download & use. Simply use the hierarchy on the left hand side and navigate to Visual C++ and you should be able to simply click "C++ Windows Forms" and it will create the new project, while also downloading and installing the template for future use. So, next time you go to create a C++ Winform you wont have to search for it again.
Click File-New-Project
Click online
Click/ Expand Visual C++
Click windows form application
Click C++/CLR Windows Forms fur Visual Studio 201..
Write project Name And Click OK.
Download and enjoy!!
I wanted to clear a confusion here.
I changed the application icon for the .exe file using the solution here. When I locate the .exe file in explorer I do see the change in the icon.
However, when I run it on debug mode from Visual Studio 2010, the changed icon does not show up - it shows the generic white box.
So I was just wondering if this is an expected behavior or not? My application will still have the new icon when I generate the .exe file in release build right?
As Hans Passant said in the comment:
It is expected. Google "reset shell icon cache"
In Visual Studio 2012, I usually use C# applications, which work fine. Now that I feel like I have a strong grasp of C#, I've decided to move on to C++. I have changed no preferences. All of my C++ projects say that the project is out of date. Here are my steps:
File -> New Project
Click "Visual C++" tab -> Win32 Console Application
Change nothing and click OK
Click Finish for the Win32 Application Wizard
Press F5 to run, or click the button (which says "Local Windows Debugger").
I'm not sure if I'm making a mistake or if there are missing dependencies. My question is, what is causing this and how can I prevent this message? If you don't know, then what are some things that I can do to find out?
what is causing this
=> Two possible reasons :
you just created the project and have not built it before trying to launch it
OR you made some changes to the project files and tried to launch the application before building the project
how can I prevent this message?
Tick "Do not show this dialog again" and click yes : your application will automatically be built every time you want to launch it.
OR always build the project before launching it
For some reason I can't open the test explorer window in Visual Studio 2012. I click Test->Windows->Test Explorer and nothing happens...
This problem may have been caused by recently uninstalling DotCover. I did this because my licence expired and I was having issues running tests without it (context menus weren't working).
Any suggestions or advice much appreciated!
Thanks.
In VS2012, Test Explorer has a bug in that the window doesn't get focus when you click Test > Windows > Test Explorer. Instead, the menu item has no effect unless the window was complete hidden, in which case it is displayed.
The bug means that if Test Explorer is collapsed with Auto Hide, the menu item does nothing. Check that Test Explorer isn't in an auto-hide tab somewhere off to the left or right (i.e. in a tab with text written vertically, like Server Explorer and Toolbox are by default).
Update: The bug is fixed in VS2013.
Window -> Reset Window Layout fixed the problem for me.
For me the fix was:
Focus on the test window by Test > Windows > TestExplorer
Using Win+Left / Right to move the window onto an active screen
> ┌┬┐
> Win├┼┤ + Left or Right key
> └┴┘
The same worked for the ReSharper Unit Test Sessions window.
Found this solution here, which is the only thing that worked for me.
Delete all files from this folder:
user\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
As a brutal fix I actually decided to reset all VS settings (not ideal as you lose all your custom settings like formatting and debugging preferences!).
To do this open up a cmd line and cd to the VS directory (mine was C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE) and type:
devenv.exe /ResetSettings
Hope this helps someone in the future...
This worked for me (VS2015):
Close VS instances.
Delete component model cache folder %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache . This
wipes out the MEF cache.
Run devenv /setup /ResetSkipPkgs ref. http://msdn.microsoft.com/en-US/library/ex6a2fad(v=VS.80).aspx
Start VS again and see if the problem goes away.
Source
I had the same problem; turned out it was the Corbis Route add-in that was causing an error in combination with the 'I hate regions' add-on, which caused the Test Window to throw an exception.
After removing both add-ins the window reappeared again after a reset of the VS 2013 window layout. (Windows > Reset Window Layout)
A short-cut for those who have lost Test Explorer somewhere !
Ctrl + Q (for quick launch)
You would notice the focus on a small text box on the top right of VS.
Type in "Test Explorer" and select the option that says Test> Windows> Test Explorer
I have VS 2015. I couldn't find my Test Explorer, even with Test->Windows->Test Explorer. I finally figured it was showing on the left instead of the right.