visual-studio

Is there a way to keep Visual Studio from modifying the solution file after every test run?

Visual Studio seems to be modifying a list of .vsmdi files in my .sln every time sometimes when I run a unit test. This is annoying because my source control client thinks the .sln file needs to be checked in even though I don't want to check it in. Is there any way to keep Visual Studio from munging the .sln file after a test run? Edit...

How can you bring a control to front in mfc

How do you change controls' Z-order in MFC at design time - i.e. I can't use SetWindowPos or do this at runtime - I want to see the changed z-order in the designer (even if I have to resort to direct-editing the .rc code). I have an MFC dialog to which I am adding controls. If there is overlap between the edges of the controls, I want ...

VisualSVN and class libraries not in the working copy root

We're making the switch from SourceGear Vault to TortoiseSVN with VisualSVN for Visual Studio integration - absolutely love it. However, there are multiple class libraries that we reference in multiple different applications that aren't a part of the working copy root in any of the applications. What's the best way to deal with this so t...

Visual Studio 2005 locks up when attaching to process

I have a simple C++ DLL that implements a few custom actions for a WiX installer. Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears. But today, whenever I attach to the process, I get the "Microsoft Visual Studio is Busy" b...

Pitfalls for converting a .net 2.0 solution to .net 3.5

We're moving a solution with 20+ projects from .net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. Is there any reasons not to let the Visual Studio wizard convert the solution for us? Is 3.5 fully backwards compatible with 2.0? Is Entlib 4.0 ful...

Visual Studio 2005: All projects in solution explorer expanded on first opening of solution

Is any way to tell the solution explorer of Visual Studio 2005 not to expand all projects on the first opening of the solutio after svn-checkout? Edit: Thanks for pointing out the PowerCommands. As I am using Visual Studio 2005 with .Net 2.0 it does not work for me. Are there similar tools available for VS2005? ...

Different team members on Visual Studio 2005 and 2008

I am currently working on an asp.net application in Visual Studio 2005. I would like to upgrade to 2008 to take advantage of some of the new features, but my remote team won't be able to upgrade to it for a while. Is it possible for only a few people on my team to upgrade to Visual Studio 2008, while the rest of the team continues to us...

Packaging up the .net framework with a .net application deployment.

Can you package up the .Net framework in an installer created in Visual Studio? If so how? I've seen this done with Install4J packaging a JVM but I think that was the JVM to run Install4J. ...

Prevent Legacy Function Calls In VB.NET

Within Visual Studio 2008, what would be the easiest way to prevent usage of certain functions from being allowed? Specifically, I'm trying to prevent other developers from using "old school" VB6-style commands such as: Len LCase UCase Instr InstrRev Trim Right Left Mid etc., etc., etc.... The list goes on and on. I can usually ca...

How to setup VS2008 for efficient C++ development

Normally I program in C# but have been forced to do some work in C++. It seems that the integration with Visual Studio (2008) is really poor compared to C# but I was wondering if there are any good tools, plugins or configurations that can improve the situation. Another post pointed out the program Visual Assist X, which at least helps ...

Generate a WSDL without a webserver

I would like to generate a WSDL file from a c++ atl webservice without using a web server. I would like to generate it as part of the visual studio build or as a post build event. I found a program (CmdHelper) that does this for .NET assemblies but it doesn't seem to work for what I need. Any ideas? ...

ASP.NET project size

Are there any known issues around how many "pages" are in an ASP.NET project? Does the size of the DLL created by the project matter at all? My existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently ...

Docking a CControlBar derived window

How can I dock a CControlBar derived window to the middle of a splitter window (CSplitterWnd)? I would like the bar to be repositioned whenever the splitter is moved. To make it a little clearer as to what I'm after, imagine the vertical ruler in the Dialog Editor in Visual Studio (MFC only). It gets repositioned whenever the tree vie...

How can I see my applications threads while debugging in Visual Studio?

I would like to see the threads currently active in my application while debugging it. How can I do this using Visual Studio? ...

Using Crystal Reports in Visual Studio 2005 (C# .NET Windows App)

I need to create reports in a C# .NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets. Can someone please point me in the right direction for creating reports? I just can't seem work it out. Some examples would be a good start, or a simple How-to tutorial...

Creating Project Fails in Visual Studio 2005 and VS2008

Every time I try to create a new project or solution in visual studio (2005 and 2008), I get an error saying, "Project Creation failed." I even tried running vs in administrative mode, but I still get the same answer. Anyone have any suggestions, in short of uninstalling all of VS and reinstalling it? ...

Team Foundation Server Port 8080 ASMX Access Issue

How come one user in the local Administrators Group has no problem hitting http://localhost:8080/services/v1.0/Registration.asmx while other users in the local Administrators Group get 403 (access denied) errors (with nothing in the Event log)? ...

relative paths in visual studio

I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the .txt file to the project folder. The debug .exe file is in the /bin/debug folder. My main question is how to properly point to the txt file from code using rel...

How do I improve compiling speed in Visual Studio C++ 2003 project that is using C++ Boost Libraries

I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on. However when I tried to used these libraries my compile times increased ten fold. This would pretty much offset the productivity gains I would receive by using the l...

how do I specify the source code directory in VS when looking at the call stack of a memory dump?

I am analyzing a .dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code. I can right click on the call stack and select symbol settings.. where I can put the location to the PDB. But there is no option for the source code...