visual-studio

WPF Documentation and Visual Studio 2008 Express

I'm trying to get a WPF development environment set up at home, using Visual C# Express 2008. I installed both it and the MSDN documentation for it, however it looks like the documentation doesn't include any WPF documentation. I was about to install the Windows Vista SDK, however it looks like that only includes the documentation for ....

Split edit window in Visual Studio

It there any way to show two editing windows in visual studio? I would like to look at two source files at the same time but I must be missing the option to do that. ...

Array of zero length

I am working on refactoring some old code and have found few structs containing zero length arrays (below). Warnings depressed by pragma, of course, but I've failed to create by "new" structures containing such structures (error 2233). Array 'byData' used as pointer, but why not to use pointer instead? or array of length 1? And of course...

How to deploy multiple projects in a single MSI?

I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup pro...

Visual Studio: why do you use the specific edition that you do?

I work at a web development company, so our aim is ASP.NET and IIS. Currently we use a mix of Visual Studio Web Developer 2008 SP1 and Visual Studio Standard Edition 2005, and we're about to purchase the same edition for all development teams. We work in teams from 3 to 8 developers per team. Looking at the feature matrix of Visual Stud...

How to run another process at debug mode?

I am writing a windows service. This service runs another process I've developed through Process class methods, but I want to run this process on debug mode also, using breakpoints, for instance. How can I do this? ...

Can you specify the folder VS will use when debugging mobile apps?

Hitting debug will deploy the application to \program files\AppNamespace\AppName.exe and attach to it. However, my app runs on the storage card \SD-MMC Card. This means I'm debugging and running in different places, so I have a slight maintenance headache. Therefore the question is, anyone know if you can specify the folder VS will use...

Adding a script with ScriptManager on a CompositeControl?

I'm trying to call my good old 'RegisterClientScriptBlock' on the friendly 'ScriptManager' class. It just doesn't work for my CompositeControl? I use it on a normal usercontrol (ascx) where it works. Visual Studio simply won't accept me typing 'ScriptManager' or i get "The name 'ScriptManager' does not exist in the current context" if ...

Does Visual Studio 2008 have integration with SourceSafe?

I'm using Visual Studio 2008 Professional Edition. In previous versions, there has been integration with VSS, through which one could "open from SourceSafe" and then, in the solution view, have the ability to interact with the source control by clicking on individual files. I seem to have some integration under 2008, namely there is a "S...

Visual Studio Installer does not include satellite resource assembly

I have a VS2008 installer project which installs a .NET Windows Service. One of the service's dependencies is a .NET assembly which has localized resources in the form of a satellite assembly. The installer is not packaging or installing the satellite assembly for some reason and the service will consequently not start. Any ideas? ...

How to make an ATL COM class derived from a base class?

The "ATL simple object" wizard doesn't provide a way to specify that a new class is derived from an existing coclass and its interface. In Visual Studio 2008, how do I make a new ATL COM class derived from an existing one (i.e. Base implements IBase, and I want to make a new Derived class derived from Base that implements IDerived, where...

Defining macros in Visual Studio - /D or #define?

Recently, when porting some STL code to VS2008 I wanted to disable warnings generated by std::copy by defining the new _SCL_SECURE_NO_WARNINGS flag. You can do this in two ways: Using the /D compiler switch, which can be specified in the project properties. You need to ensure it is defined for both Release and Debug builds, which I of...

How to get Build output, error list, when running Project.Build() in a custom build task?

Environment: C# projects, Visual studio 2008, C#, .Net 3.5, MSBuild Objective: Run my own custom build task for my C# projects, and based on the platform (Soln configuration platform), I do some manipulations to the Project object itself before build. Like setting BuildAction to EmbeddedResource etc. Once that's done I call Project.B...

Team Build now Painfully Slow

We're running into performance issues with our implementation of Team Foundation Build Server and I'm running out of ideas on how to speed things up. We've already added a few PropertyGroup elements to increase the performance on several steps (SkipClean, SkipLabel, SkipInitializeWorkspace), but I think we need to undergo a major restruc...

How to change the default browser to debug in Visual Studio 2008?

When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008? NB. I have looked for the 'Browse with' option and not found it. http://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of-ie NB2. If you are already debugging you dont have the 'Browse with...

Source encoding in Visual Web Developer 2008 Express

Where can I set it? I need files to be encoded in UTF-8 by default... there is nothing in Tools -> Options or any other menu as far as I know :( P.S. I don't need to set default encoding for Project or so, I need it to be default for any files I create. Thanks for your help :) ...

Handling Different Resolutions in Visual Studio 2008 for .NET CF

Hi, I am developing a .NET CF based Graphics Application, my project involves a lot of drawing images, We have decided to go for porting the application on different handset resolution.(240 X 240 , 480 X 640) etc. How would i go onto achieve this within single solution/project? Is there a need to create different projects based on res...

How to debug code that uses boost w/o losing sanity?

Boost is a great set of libraries and it really boosts productivity. But debugging code that uses it is a total nightmare. Sure, stepping through twenty thousand header files can be a valuable intellectual exercise, but what if you need to do it over and over again? Is there a developer-friendly way of just skipping the boost portion an...

What/Where is the "Symbol Browser" in Visual Studio 2008?

OK, so this is the background... I'm going to manually fix the multiple resource header files in our project. That involves fixing this value, among other things: #define _APS_NEXT_SYMED_VALUE ... that is automatically written to in (normally) resource.h. It's documented as having this purpose: _APS_NEXT_SYMED_VALUE is the next symb...

Debugging with command-line parameters in Visual Studio.

I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging? ...