visual-studio-2010

Should or can Visual Studio run inside App-V and what are the repurcussions?

There is a debate going in our department to virtualize Visual Studio into App-V, Microsofts Application Virtualization. In the back of my mind, I think doing this will cause problems when trying to debug or run other tasks in Visual Studio but I can't put my finger on any one thing to support my argument. Has anyone had any experience...

Free Visual Studio XML Documentation Authoring Tool

Hi, I'm looking for a free authoring tool to author XML Documentation in Visual Studio 2010. I know Document! X but i'm looking for a free or open-source similar tool. Any idea ? Thanks. ...

patch, update and upgrade for an application

Let's say we have a simple calculator application that has GUI Business Logic Could someone explain to me in detail how could I "make and allow" it to work smoothly with Patch at both the levels Update at both the levels Upgrade at both the levels ...

How to read the C++ CLI .obj files (result of compilation of a single file).

I have a small (<300 lines) C++ file in a C++ CLI project in Visual Studio 2010. I have crafted some macros which do different things depending on the Debug/Release configurations. I would like to be able to look at the resulting .obj files (when I compile in Debug and Release) and be able to compare the two. The hard part is that files...

Language for Text View in VS2010 Extension

I'm new to building addins for Visual Studio, but have managed to build a simpe tool for VS2010 that does a little text manipulation in the currently active code window. I've got to the point where I need to know the language (VB.Net, C# or whatever) of the current text view. I have tried to get the filename (so I can look at the extens...

Is it possible to execute vb.net code using vs2010 without running the project?

This may be a strange question and have no answer but I thought I would post it to see how you would go about doing it. I have a line of code: Grade = Math.Round((Math.Abs(CorrectAnswers) / TotalQuestions) * 100) Basically that line just figures out the grade no major code work there, what I want to do is execute that specific line wi...

Visual Studio 2010 - C++ MFC application with Ribbon UI - Transparency in bitmaps

I am playing around with a small MFC-wizard-generated application, in Visual C++ 2010, and I just decided to put my own bitmap into the resources to replace the three-cubes MFC bitmap that shows up in the ribbon UI Application Button, aka the "marble". The original appeared to use black (0,0,0) as a transparency color, but I am unable t...

Visual Studio 2010 Code Analysis - Run on Solution

Hello, I would like to manually run code analysis for an entire solution, not on building the project, and not using FXCop, if possible. I did enable CA on build but it really, really slowed down the build process, and we can't have that. But it seems weird to me that code analysis can only be run per project manually through the menu...

ASP.NET with VS 2010: Web Site or Web Application?

When I start a new ASP.NET project in Visual Studio 2010, I can either create a new ASP.NET Web Site or an ASP.NET Web Application. What's the difference between these two project types? Why would I choose one over the other? Please note: this question is an exact duplicate of this one, but I'm asking specifically about Visual Studio 2...

Migrating from VS 2008 to VS 2010 (4.0) and VB.NET to C#

I know there are tools to migrate VS 2008 application to VS 2010. But anyone knows a tool that can also convert VB.NEt code to C# code. ...

/RANU switch on RegPkg.exe always fails on VS2010 SDK

Hi; I am trying to get RegPkg to register a Visual Studio 2010 extension package under HKCU rather than HKLM. Supposedly, the /RANU switch is for that (/? help lists the switch), but if I invoke "RegPkg.exe /RANU assemblyToRegister.DLL", RegPkg fails with "regpkg : error : Invalid Parameter 'RANU'" Tried various other placements and ca...

Visual Studio unable to load necessary dll's to run project

I am trying to run a project in Visual Studio 2010, and for some reason it seems like I can't... the command-line window is closed instantly and the debug info is the following: 'exercise01.exe': Loaded 'E:\e\work spaces\C++ projects\exercise01\Debug\exercise01.exe', Symbols loaded. 'exercise01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dl...

Run JavaScript unit tests inside of Visual Studio 2010

I have been searching for a good way to run JavaScript unit tests inside of the Visual Studio 2010 IDE. I currently use TestDriven.net to run my C# units tests and it is very convenient to be able to quickly get the result of my tests in the output pane. I would love to find a similar experience for JavaScript (ideally working with Test...

How can I mark a CA [SuppressMessage] as "blessed"?

Try as I might to keep [SuppressMessage]s to a minimum in the codebase, new ones continue to get introduced. I would like some way to say in the code "I've reviewed this [SuppressMessage] and it is 'acceptable'". One thought was to create my own My.CodeAnalysis.SuppressMessageAttribute class which inherits from System.Diagnostics.CodeA...

Global variables in C++

I am working with some C++ code that has a timer and the timer runs this: char buf[1024]; ZeroMemory(&buf, sizeof(buf)); somefunction(buf); // this put stuff into buf otherfunction(buf); // this do stuff with buf somefunction() does a web request and InternetReadFile() puts the data in "buf" But I need to be able to read the previous...

In visual studio 2010 what is/how to set the hotkey to pin and unpin an active pane?

I often run tests and need the test-result pane to be pinned. In other time, I mostly work with writting codes and compile - I prefer to have the output pane (which shared the same space with test-result pane) automatically viewed while compiling and collapsed when done (i.e. unpinned). I need an hotkey to quickly switch the pane to pin...

When should we call build/rebuild current project/solution and when to call clean solution?

I work with a team and sometimes get problems, eg missing a warning/error, when I don't rebuild the solution (I often call build solution only). Rebuild the solution help me get rid of those problems but take long times. So, I want to know in which situations we should/shouldn't call rebuild as well as clean a solution/project? ...

What's the difference of VS2008 and VS2010 when I do a Load Testing?

Hello, Everyone :) I have a project and I want to do some load testing to it. I have a VS2008 test Edition now, but there is another choice: VS2010 Ultimate. Should I do my load testing on VS2010 Ultimate? Is it a better choice? Why ? What's the difference of VS2008 and VS2010? Thanks for your attention :) ...

OpenCV link problem

HI I switched from visual studio 2008 to 2010, now I have problem linking my lib files from opencv 1.1 I've added required libs and .h files. but I get following error: "Error 53 error LNK1181: cannot open input file 'cv.lib.obj' C:\Users..\SOLOUTION_NAME\PROJECT_NAME\LINK" ...

Using operator[] on empty std::vector

I was advised a while ago that is was common place to use std::vector as exception safe dynamic array in c++ rather than allocating raw arrays... for example { std::vector<char> scoped_array (size); char* pointer = &scoped_array[0]; //do work } // exception safe deallocation I have used this convention multiple times wit...