/analyze flag in Visual Studio 2010 Professional - visual-studio

Running Visual Studio 2008 Professional it is possible to enable static code analysis using the /analyze flag (even though this is not supported for the Professional version according to the documentation).
In Visual Studio 2010 Professional this no longer works. Instead there is a default /analyze- flag added (one I can't find a GUI setting for). This does not work as well as the VS2008 version (or at all).
Can anyone shed some light into this? What does the new /analyze- flag do and is there any way to enable the old analysis?

The compiler in 2010 is the non-enterprise one. VS 2008 happened to ship with the enterprise compiler. (Compare the output of cl /?)
/analyze- turns off static analysis. What you could do is see if the latest Platform SDK ships with the enterprise compilers (they did in the past), and configure your paths in VS to use them instead.

It can still be done by using the SDK and installing the latest compiler update, see:
http://randomascii.wordpress.com/2011/10/15/try-analyze-for-free/
Note that if you're using an x64 system, you'll need to manually set your environment to x86 mode (as x64 is the default) to get /analyze to work.

Upgrade to VS 2012 or VS 2013. They support /analyze in the professional SKU and it supports /analyze for both 32-bit and 64-bit. See my /analyze blog post for details:
http://randomascii.wordpress.com/2011/10/15/try-analyze-for-free/

Related

Use OpenMP with Windows SDK

I am aware that VC2010 Express Edition does not include OpenMP support and therefore would report omp.h file missing. Therefore, I have installed Windows SDK v7.1 64-bit version in Windows. However, even I ran:
set DISTUTIL_USE_SDK=1
setenv /x64 /release
And then try to compile the code, it would still report cannot find omp.h. Could anyone give me a hint on how to solve this?
Did some checking, and it appears that OpenMP is not part of the Windows SDK, and is only shipped with Visual C++ 2010 Professional or Ultimate editions.

Install WinCE 5.0 Platform Builder SDK - build code with Visual Studio 2012 or higher

I have a Windows CE 5.0-based Platform Builder image. It is intended to be installed on Visual Studio 2005. My team would like to upgrade our build tools to utilize Visual Studio 2012, but Visual Studio 2012 does not support this platform image.
To be clear; I am not asking whether or not Visual Studio 2012 (or higher) supports Platform Builder SDKs targeting Windows CE 5.0. That question has already been answered (more or less), and the answer is clearly "No."
Instead, what I'd like to do is install the Platform Builder SDK, and manually modify the Visual Studio 2012 environment to allow compilation of my Windows CE code. Features like remote debugging and deployment are acceptable losses to my team; we have our own pathway for deployment and debugging on our embedded device. What I'm really hoping to gain is simply the ability to build WinCE 5.0 code in VS2012, which was intended for VS2005. I am attempting to reduce the number of Visual Studio installations, and get access to the superior intellisense faculties of newer versions of Visual Studio.
Does anyone know if this is possible? How would I go about doing that?
There does not appear to be a way to do this, in such a fashion as to no longer require Visual Studio 2005.
You can, however, use registry hacks to force Visual Studio 2012 to build a WinCE 5.0 project by utilizing the compiler binaries from Visual Studio 2005, during compilation. This would allow you to develop code in VS2012, but would also require that VS2005 be installed for a successful build.
Here is an article explaining the steps to set this up.
VS2012 doesn't have any of the Windows CE compilers. The last one that shipped with compilers compatible with CE 5.0 was VS 2008, so that's the "latest" version you'll be able to use to build. (VS2012 is capable of building for Windows CE, but only for WEC 2013, and only after installing a WEC 2013 SDK, which includes the requisite compiler pieces).
In short, there's no way you can get VS2012 by itself to compile a CE 7.0 or earlier app.
There is a plug-in for VS 2013 that will allow you to use that IDE for managed code (I've never used it, so I can't say how well it works), but it still requires VS 2008 to be installed to get the compilers.

installing nSight Studio with Visual Studio

I would like to start programming CUDA.
I've installed Visual Studio 2010 Express.
I've also isntalled nVidia nSight Visual Studio.
And I have all common prerequisites (Net FrameWork, Java, ...)
But I cannot see any CUDA option in my Visual Studio options nor project properties.
What should I do?
Do I also need to install the Cuda toolkit? It's offered as a separate package but nSight has already installed something called cuda toolkit.
regards
I'm using Windows 7 64bit
Due to a technical limitation in the Visual Studio Express editions, Nsight for Visual Studio only supports Visual Studio 2008 Professional and above and Visual Studio 2010 Professional and above.
You need to install Cuda toolkit and Nsight for debugging.
As far as vs 2012 is concerned did you follow this guide?
http://code.msdn.microsoft.com/windowsdesktop/CUDA-50-and-Visual-Studio-20e71aa1#content
Although I made it work for build I cannot debug with nsight cause its just incompatible with visual studio 2012. I've tried nsight 3 rc2 Till now, I haven't found any way to make it work and I think I have to reinstall VS 2010...
"Nsight Visual Studio 2012 support will come with the next version that is scheduled for Q2'13.
One big reason for not supporting VS2012 is that the CUDA 5.0 toolkit doesn't support the new toolchain. Sorry for the inconvenience.
I should mention that the next release candidate of Nsight 3.0 will support C++ AMP debugging in VS2012 (but no other Graphics or CUDA features will be supported)"

Use newer Visual Studio Version with an older MFC Version?

From my understanding Visual Studio 2005 always uses MFC8 automaticly, VS2008 MFC9 and VS2010 the MFC10.
Can use a newer Visual Studio Version and still link to an older MFC Version?
I searched the options and the project settings all over but I could not find any option about the MFC.
VS2010 apparently (I don't have it, so I haven't tried it) has the ability to use both VS2008 and VS2010 toolsets to build the applications, provided they are both installed in the machine.
More here
I would expect Visual Studio 11 to have the same ability, but who knows...

Visual Studio 2010 choose version to Download? (x86/x64)

Generally wondering if there are multiple versions of Visual Studio 2010 to download i.e. I can only find x86 and unsure if this is the version I want for Win7 x64 [which I am running]
Are there multiple versions available or is the only release version x86 which just install x64 components?
There won't be x64 version of VS2010. For some explanations take a look at Rico Mariani's blog post.
As far as I know there is no 64 bit version of Visual Studio 2010.
See http://news.softpedia.com/news/Don-039-t-Hold-Your-Breath-for-64-bit-Visual-Studio-113943.shtml.
According to the article "customers are better off running the development platform in 32-bit emulation mode on top of 64-bit Windows. And while saying nothing about 64-bit support beyond Visual Studio 2010, the lesson for developers is don't hold your breath for x64 VS."
Not that answer you wanted.
There is no x64 version of Visual Studio...
http://news.softpedia.com/news/Don-039-t-Hold-Your-Breath-for-64-bit-Visual-Studio-113943.shtml
In summary, there's no lift from a 64-bit compiler or IDE.

Resources