visual-studio-2008

Visual Studio 2008 Editor Configuration - Caret & Current Line

I am trying to do a couple of things to customize the Visual Studio 2008 Editor Configuration. I want to do this via some setting or macro that I can write myself. I can't install third-party add-ins such as resharper to achieve these goals in the environment where I work. Here is what I need to do: I want to change the color of the ca...

Development software - How common is it for developers to buy it for personal use

Edit: The answer is yes, pretty common. The Microsoft TechNet is one of best deals (except it does not have Visual Studio). So MSDN generally is a better choice. Thank you Hello All, I was recently looking at prices of Microsoft Visual Studio, SQL server and MSDN subscription. I never considered it necessary to buy it for personal use, ...

VS2008 won't show Trace output.

I'm using Visual Studio 2008. The Trace output is no longer being shown in the Immediate Window any of my forms except the primary form. When it executes code from within another form (called from that primary form) the Trace output doesn't show up. It used to be fine, and one day it just stopped working. I think this is a setting in VS2...

How to customize Visual Studio Console Debug window?

I'm curious if anyone has figured out how to create their own Debug Output window in Visual Studio. For applications without a real console window (e.g. web apps), writing Debug or Trace messages end up in the Debug output window along with every other message (including overly verbose DLL loading messages). It would be great if we coul...

Customizing (not changing!) the VS 2008 start menu

Is it possible to customize the VS2008 start menu (remove the RSS feeds, expand recent programs, etc.)? ...

Database Unit Test in Visual Studio Compare Vars/Columns?

I have a Visual Studio 2008 GDR Database Unit Test (Data Dude) with some TSQL that calls a sproc. I then have a single select statement that produces a 1-row result set with 2 columns. I want to pass the test if the values are equal and fail if it is not equal. I do not understand how to config/code this, can anyone point me in the right...

System.OutOfMemory Exception in VS2008 when loading TestResults

Hi. I'm experiencing some problems when loading a TestResults list (.trx) from the nightly builds on the buildserver. I get a System.OutOfMemory exception very often. I just checked the memory and the devenv process loading the .trx file threw the exception at roughly 700 MB. The .trx file has a size of 167 MB. Furthermore I can load...

How do I add an install-dir to an installer project?

Hello, I'm trying to create an installer project for my application - What I'm attempting to achieve is to have the installer ask the user about the target installation directory's path and then - after the user confirms the path - add that to the registry. Can anyone recommend something to read on this matter or show me the solution ?...

How to Turn off auto-formatting when surrounding by #region (VS2008)

I dont like the way VS formats the code so, I've unchecked all 3 options in Text Editor / C# / Formatting. I've also checked 'Ignore spaces in declaration statements'. In most cases it works. But when I'm surrounding code by eg. #region I noticed my declarations are reformatted (Removed TABs) Is it a way to protect against ?? I'm u...

VS2008 trying to create a new project from pre-existing C++ code on a mapped network drive

I have a bunch of source code checked out from a SVN repository, now living in a folder on a mapped network drive which happens to be a linux machine. We're using this as a build environment as it currently has the numerous libraries needed to build painlessly. What I want to do is use VS2008 on my Windows Xp development box, and create...

Visual Studio 2008 forces me to Rebuild Web Site every time to effect any changes I make

Hi, I have been using Visual Studio 2008 for the past 2 years or so. Recently, in 2 particular ASP.NET (with VB.NET) web sites I am forced to do a Rebuild Solution after any change, no matter how minor, even if it's just an HTML change. In other words, I cannot load the application into the browser and make an HTML change and hit F5 as...

Howto Track down variable Corruption

I have a MFC class derived from CStdioFile declared as follows // Datafile.h class CDataFile : public CStdioFile { public: CDataFile(void); ~CDataFile(void); int OpenFile(LPCWSTR FileName); } After my OpenFile function is called the FileName variable is being corrupted. int CDataFile::OpenFile(LPCWSTR FileName) { m_OpenFl...

Using background worker with multiple classes in C#

I am learning to program in C# and have most of the basics down already. I am having trouble using the background worker and using it with multiple classes. This is a backup program that I am writing I have the following classes. lacie.cs ---> used to search for backup device main.cs ---> Main entry size.cs ---> Determines the s...

What is the Code Definition Window in Visual C++ 2008 Express?

I am working on the Sphere Online Judge problems (OK I am only on my 2nd lol) and using VC++ 2008 express and have just noticed the "code definition window". What exactly does this thing do? Is it any use to a beginner like me? ...

How do you Debug/Run classic asp pages in Visual Studio 2008?

Whenever I try to open a classic asp page while running the site in VS2008 I get the error: "This type of page is not served". How do you Debug/Run classic asp pages in Visual Studio 2008? AnthonyWJones has the correct answer but it is not letting me select an answer for some reason. Here is a tutorial I found that goes into more deta...

Why would Browse Information in Visual Studio 2008 stop being updated?

I'm working on a fairly big (I think - is 32 projects big?) multi-project 'solution' in Visual Studio 2008. Because it's a legacy system, the code is mainly C <gasp!>, although I don't think that's germane to my question. Recently (but I'm not sure how recently), I've noticed that my browse information - the VS facility that allows one...

Is there a way to read from Response Headers without getting a PlatformNotSupportedException?

Hello, I am working on an Filter Attribute for ASP.Net MVC that will return a 304 response when the content has not been modified. It would be handy to be able to read the Last-Modified header value set in the Controller in order to accomplish this... there just seems to be one problem. I can't seem to find a way to read the headers when...

CMake: How to generate different shared library names depending on build type

This is my first time using CMake and I'm trying to build QJSon, a JSON parser for Qt 4.x. What I want basically is to build different output library names depending on the build configuration. I'm using ${CMAKE_BUILD_TYPE} macro to generate different targets (qjson.lib/qjson.dll and qjsond.lib/qjsond.dll). Seems that the VS 2008 solutio...

VS 2008 / MSTest - how do I run a subset of all tests?

I've just started using MSTest in a Visual Studio project (NUnit has been what I've used before) and I have a few questions. I see that if I right-click on a single test method and choose run tests, it'll test that one method. Good. But is there a way I can set up a test run that only does x of my tests of my choosing, instead of all ...

Renaming Images / CSS classes in complete Project - how?

Hi guys, I have following problem: at the stat of a project, many many images and cssclasses was created. None of them are have a correct name // spelling and / or a single touch of name-style. Is there an AddIn for VS08 that allows me to rename easily images / cssclasses and searches all file assotiones and rename it to? (The most of...