I have a weird problem with VS 2010 (Premium).
just reinstalled it
added the WTL library files
installed the WTL wizard
created a "dialog" project via the WTL wizard
compiled and run the skeleton successfully
added a button to the dialog
compilation now fails complaining about undefined symbols (the button IDC_xxx)
turned off pre-compiled headers
cleaned solution, recompiled and run successfully
added the "onClick" handler for the button (just by double clicking on the button, no code added)
compilation fails complaining that CUpdateUI is not defined
clean, reanalyze the solution, etc. doesn't solve the issue
If I manually insert #include's (e.g. atlframe.h for CUpdateUI) I can make it work but this defeat the purpose of using VS2010!
What really annoys me is that I havent touched a single line of code, everything has been done through VS which, I hoped, should have cared for consistency!
Is it my fault? WTL fault? VS Fault? Any suggestion on how I could fix this?
Ok, solved thanks to the awesomeness of Stack Overflow!
It seems there's a bug in the WTL 8.1 Wizard. It doesn't define the WTL_USE_CPP symbol that is needed to make everything work correctly.
Head here:
How can I install WTL 8.0 Project Wizards in VS 2010?
and read Yiannis Spyridakis answer for the solution, if you have the same problem.
Related
Several class wizard functions aren't working, most of which I don't need very badly, but not being able to add classes to MFC controls is a big problem. I have an MFC dialog project going on, and whenever I try to, say, add a function to a class I just get "The operation could not be completed"--not very helpful. If in the resource view I right-click on a dialog and select "Add Class..." nothing happens.
I have Microsoft Visual Studio 2005 w/SP1. I'm running WinXPHESP3 32-bit.
BTW, this project was imported from VS 6.0, so I've got a bunch of things lying around like AFX_MSG_MAP, which I'm starting to suspect is useless and maybe interfering.
Like I mentioned in comments, a repair didn't work, so I did a reinstall. That also had a few errors, but VS seems to work now. If I had to do it all over again, I might have tried reinstalling the SP1 first.
I have got the following problem with F# code recently: almost the complete code is underlines with curly red lines (indicating problems) and whenever I hover with the mouse cursor over any word the pop-up appears with the message "Unexpected token". IntelliSence doesn't work either.
Nonetheless if I start the project it is executed without any problem.
This happens both to already existing F# files and to newly created F# projects. I remember it was working just 2-3 months ago!
I tried to deactivate all possible extensions but it doesn't help.
Any ideas?
I get this too. Sometimes, simply exiting and going back into VS helps. When I tweeted the problem, Don answered with this:
"do you have "python tools for visual studio alpha" installed? if so, uninstall it or apply the hot fix"
This wasn't relevant to me (as I haven't been anywhere near python) but I'm posting here in case it helps you.
-- Edit: here's a link to the patch, thanks to Alexander Galkin: http://pytools.codeplex.com/workitem/599
I haven't seen this situation before but here's a guess at why it's happening and how you might cure it.
Visual studio works on a system for plugins. Even the stuff that is "native", like the C#/F#/VB.NET project systems, are just plugins that uses the visual studio shell. It looks like the F# plugin has been damaged in someway.
If this is Visual Studio 2010:
You might try opening the visual studio installer and trying a repair installation or deactivation and reactivating the F# project system
If this is Visual Studio 2008:
You might try uninstalling and reinstalling the F# plugin
I'd like to use Qt inside the visual studio IDE, however whenever I create a new project and select the Qt template an error pops up:
Cannot find 'file:///D:/programs_on_d//Nokia/Qt4VSAddin/wizards/HTML/1033/default.html'. Make sure the path or Internet address is correct.
Yet when I browse to D:\progams_on_d\Nokia\Qt4VSAddin\wizards\Qt4GuiProject\html\1033, I do see the default.htm just there..
What am I doing wrong and how can I fix this?
Well seems to be depending on the phase of the moon - the problem just disappeared some time later. (Without any update occuring)
I have Visual Studio 2010 Ultimate on Windows 7 Enterprise running on a x86 box. I cannot create any C++ project from VS although I can create C# project. On the new project dialog I press OK button and nothing happens. I don't get any error but no solution or project is created either. Not sure if it helps but I log in as Administrator. Any ideas?
Did you check the thing called C++ runtimes which is required by VS to run properly?
I guess the idea to reinstall is good.
This will even repair some missing or corrupt which may have been accidentally deleted or corrupted.
Most probably you did not check the C++ language option during installation. If you re-run the Visual Studio installer and check the C++ language option (maybe choose custom setup to make sure you see the option and are able to include it), everything will run file.
In case you already did that, there might be a problem with the C++ project type registration in VS. Please come back to this forum if you still have problems after re-installation.
I run VS2010 Pro on a Windows XP machine.
I have downloaded and installed PEX & Moles. That all went fine.
When I open a C#-project and position the cursor on a class method and rightclick, I see no 'run pex' or 'pex' choice, as should be the case according to (install) docu.
As far as I could see I have done all by the book, but no joy.
It seems I forget something somewhere but what? Who can help me out?
I have noticed the same functionality when I added a reference to Pex to my project. When I removed it and right clicked the method body, then I could see "Run Pex" and "Pex."
I believe, and someone correct me if I am wrong, that you only need to reference the Microsoft.Pex.Framework in your Test project, not the project you are testing.
I had the same problem. I closed visual studio and opened it again. Voila, it's there.
So, I think the issue is when the Pex was installed, my VS2010 project was open. It can't detect it after Pex was installed. If you close the project and open it again, the option shows up.