QFixed is used in many internal struct inside qt source code. visual studio is one of the best c++ debugger.
QFixed raw view is an integer which is multiplied by 64, how could I view the divied-by-64 value?
open C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\Visualizers\qt5.natvis.
add
result
Related
I recently upgraded my Visual C++ solutions and projects from 2010 to 2013. And I am correcting the things that impede them from compiling.
On lines like
m_Impl.GetMenuBar()->RestoreOriginalstate();
I receive the error
error C2039: 'RestoreOriginalstate' : is not a member of 'CMFCMenuBar'
If I Go to Definition of GetMenuBar, 2013 has that function and goes to the right place, the file
c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include\afxframeimpl.h
But if I Go To Definition of RestoreOriginalstate, it goes to
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxmenubar.h
which is absolutely wrong, because 2013 has not this function and this header file belongs to the 2010 installation.
How can I stop Go To Definition to go erroneously to the 2010 sources?
I want to migrate a Visual Studio 2010 Solution so that I can work with Visual Studio 2013.
If I understand it right, due to the round-tripping feature of Visual Studio 2013,
there is no reason to convert the solution!? I can just open my old solution with
Visual Studio 2013 and can just work with it.
Is that right? Or is there a good reason or need to do a conversion to a
Visual Studio 2013 solution.
Or better: Is there any good reason to not stick with the old Visual Studio 2010 solution?
Visual Studio 2013 can open a sln file created by Visual Studio 2010. However, Visual Studio 2010 can not open a sln file created by Visual Studio 2013.
The easiest way to see this is to open the sln file in a text editor and look at the first 2 lines:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Visual Studio has a version setting in the header (this example is from VS 2012). An older version of the tool wont open the file.
Beyond that there aren't really any big differences in the file. There are certain project types (ie Project("{guid}") that aren't supported in older version of Visual Studio. For example a Visual Studio 2013 SDK project can only be opened with Visual Studio 2013.
To wrap up, if you have an existing Visual Studio 2010 sln file, there isn't really any need to change it. If you plan on opening it again in VS2010 then make sure you don't change it. Otherwise I wouldn't worry about it and just let VS do whatever makes VS happy.
I am compiling a .cpp file using cl.exe of visual studio 2008. I want it linked using link.exe of any version of visual studio. When I do it, I get some link errors for _Xran, _Xlen etc. Is there any ways to acheive compatibility of .obj file?
After installing Visual Studio 2010 Premium and trying to start it, following error message pops up:
Program can't be started, ATL100.dll is missing. Reinstall program to solve the problem.
I searched for the ATL100.dll and found it in:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\ia64\Microsoft.VC100.ATL"
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x64\Microsoft.VC100.ATL"
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.ATL"
Copying the file to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE" also won't work.
Any tips how to fix this problem so i can start VS 2010 ?
If ATL stands for "Active Type Library" then it could be some helper DLL for it. Because ATL also is a COM based framework, it could be necessary to register the DLL. Copying would not work in that case.
regsvr32 ATl100.dll
Just a hint for the next time.
FYI,
I had same problem.I couldn't run both Visual Studio 2010 (SP1) and 2012 (U1) due to same error.
I could fix by just repair/reinstalling Visual Studio Service Pack 1.
Here are details.
Repair/Reinstall Visual Studio 2010 -> didn't help
Reinstall Visual Studio 2010 Service Pack 1 -> fixed the problem of VS2010, but VS2012 still had problem
Reinstall Visual Studio 2012 Update 1 -> fixed the problem of VS2012
During no. 3, I couldn't see any GUI. So I just pressed enter key after launch the Update 1 setup.
It'works. I re-reinstalled it and deselected all C++ components during the installation.
I'd like to alter the "New Stored Procedure" template in VS 2010 so that it checks for the existence of the stored proc, deletes it if it exists, then does the Create.
Where do I find that template in VS 2010? It seems like it was easy in previous versions to just alter the template.
I found a template in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Templates\Database Project Items", but that is not the one the IDE is using. (That one, in fact, matches what I want to do. Probably moved over from VS 2008 during the upgrade.)
I can't find a plausible candidate under "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates"
Any ideas?
Answered here: Visual Studio 2010: How to change stored procedure template.
Have you looked in My Documents\Visual Studio 2010\Templates\ItemTemplates
Try
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
or
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates if you're NOT on a 64bit machine.