visual-studio-2008

Deliberatly trigger a compilation error in Visual Studio 2008

Hey, Is there a way to deliberatly trigger a compilation error when a certain condition is satisfied on Visual Studio 2008? ...

VS2008 pro + seven pro 64bits

Hello. I recently installed W7 pro 64bits on my laptop, and then VS2008 pro with x64 compatibility. If i build any project, will it be built with 32 or 64 bit compatibility natively? And then, is it possible to change from 32 to 64 (or from 64 to 32) ? 'Cause most of my clients only runs 32bits applications, but I'd also liked to kno...

referencing 32 assemblies on a 64 bit windows dev box

I and my co-developer have installed Microsoft Expression studio 3. I set a reference to the new mediaplayer and checked in my project. The co-dev get the project from TFS and can't do a build because of missing references. Odd I said --- until I realized that I was running on a 64 bit environment and he was not. This means that E...

How to use tabs-as-spaces in Python in Visual Studio 2008?

I have some IronPython scripts that are embedded in a C# project, and it would be convenient to be able to edit them in the VS editor. VS evidently knows about Python because it provides syntax coloring for it. Unfortunately however the editor uses tab characters for indentation, whereas I want spaces. Is there a setting to change this? ...

Debugging console application in VS 2008 launches web servers?

I have a rather large solution in VS 2008. It contains 3 web applications and a console application as well as numerous class library projects. I've set the console application as the startup project, but when I debug (using F5) Visual Studio launches development web servers for all three of the web projects. My question is why, and c...

Finding the dependencies of a class in c#

We have a c# app that uses a number of libraries (that we wrote too). The app depends on the different libraries and some of the libraries depend on some of the other libraries. Now when it comes to testing the app we also need to make sure that the libraries are all working correctly. The problem is that the app only uses a small amoun...

Visual Studio 2008 rdlc report - dual axis chart

Hi All, I am trying to find out if a visual studio rdlc local report cahrts can support 2 y axis. Is this possibel and if so how is it possible. I am happy to change chart types if needed. Thanks ...

Visual studio 2008 problem

i am using visual studio team system 2008 and VSS 2005. I took a latest copy of a project from VSS. Now when i try to open that project, it is showing error "This version of visual studio does not support source control" and " Unexpected error enocountered. Restart the application Error : no such interfaces are supporte...

Unwanted sal.h warnings

I'm trying to use VS 2008 for compiling some C code. I configured the project to use ANSI C standard without any language extensions. I also upped the warning level from 3 to 4. Upon building the project I always get this warning: c:\program files\microsoft visual studio 9.0\vc\include\sal.h(108) : warning C4001: nonstandard extension ...

How to decorate a class as untestable for Code Coverage?

Hi, Background: Visual Studio 2008, C#, .Net 3.5. I have a number of utility classes that are simply not unit-testable. This is mainly because they interact with resources (e.g. databases, files etc). Is there a way I can decorate these classes so that the Visual Studio Code Coverage engine will ignore them, so not decreasing the code...

VS2008 not picking up recently added web controls

Has anyone had experience with VS2008 incorrectly identifying variables in the code-behind as not being defined on the .aspx page? How was this resolved? The page is executing properly without any runtime or compilation errors. ...

Youtube to MP3 Convert - Visual Basic 2008

Hello, I'm wondering if I can create an application that converts a youtube link to mp3 and save it on a desktop. Does anyone have any suggestions to do this? Any references of links? Best Regards, Kevin ...

VSTO - Add custom task to a Send and Receive group

I am writing an Outlook addin. I am using VS2008 and my customer is using MS Office 2003. It is a synchronization addin I am writing, and I couldn't create my own scheduler running next to the send and receive job in outlook, but mostly I would like to add my sync-job to these tasks in the Send and Receive group. I have tried to look a...

Lightweight version control for small projects (prototypes, demos, and one-offs)

Background I work on a lot of small projects (prototypes, demos, one-offs, etc.). They are mostly coded in Visual Studio (WPF or ASP.NET with code written in C#). Usually, I am the only coder. Occasionally, I work with one other person. The projects come and go, usually in a matter of months, but I have a constantly evolving set of comm...

Expanding and Collapsing variables in debug windows

In those debug windows like Local Variables , Auto Variables and Watch , is there a way (like via an AddIn) to "expand all" or "collapse all" the individual variables listed? This way will make copying the data (which in my case are very large) to the clipboard easier and then it can be dealt with using a text editor. ...

Timing program runtimes in visual C++

Hello everyone, Is there a quick and easy way of timing a section of a program (or the entire thing) without having to setup a timer class, functions, and variables inside my program itself? I'm specifically referring to Visual C++ (Professional 2008). Thanks, -Faken Edit: none of these answers do what i ask for, i would like to b...

How to stop visual studio debugger from stepping into assembly?

How to stop visual studio debugger from stepping into assembly? ...

How to enable Javascript indentation in VisualStudio 2008?

In VisualStudio 2008 how to enable Javascript indentation? The code copied from from one users IDE is getting changed when opened in other users IDE. If there is provision to indent automatically, it will be easy to maintain the code. ...

Does Visual Studio backup files when publishing a site from within VS?

Hi, When using the "publish website" functionality from Visual Studio, it deletes all what was already there, and then publishes only the files in the solution. Does VS make a backup of the files anywhere? They're not in the recycle bin. Thanks, Martin ...

C#: Displaying images based on number of views and random

I'm not sure what kind of terminology to use in this so please edit the title to fit as necessary. For learning purposes, I'm trying to make a screensaver that displays images randomly from a specified folder. Yes, Windows already comes with this but again, learning purposes. Though I'd prefer to learn the proper way the first time inst...