visual-studio

Eclipse IDE Learning Curve

I am a C# guy with pretty good grasp of Visual Studio IDE usage (using it since VS2003). Right now, I am doing a proof of concept app using Eclipse 3.4.1. Is there any good reference or book which describes the usage of Eclipse IDE, compared to Visual Studio. Is there any Eclipse guide for Visual Studio users :) Thanks, in advance. ...

"preprocess current file" addin for Visual Studio? (C++ )

I realize that Visual Studio has the "/P" option to generate preprocessed files, but it's extremely inconvenient. I'm looking for an addin that allows you to right-click on a file and select "view preprocessed" - or any similar solution that would basically preprocess the currently-open file (with the appropriate options from the current...

Removing unused local variables from .NET code

Is there a tool available that can scan a C# or VB.NET project and automatically remove all unused local variables? ...

Wrong Library Imported via #pragma comment(lib, ...) in Visual C++

I'm using Visual Studio 2008. I have a DLL and a test program EXE. There is a header file for the DLL that contains this: #ifdef _DEBUG #pragma comment(lib, "FooD.lib") #else #pragma comment(lib, "Foo.lib") #endif The intent is to dynamically link to FooD.dll through the FooD.lib import library, for a debug build, and to Foo...

Handling changes in an interface shared across multiple solutions?

Our "main" solution is the development code: shared libraries, services, UI projects, etc. The other solution is an integration and automated tests solution. It references several of the development projects. The reason it is separate is to avoid interference with the development solution's unit test VSMDI file. And to allow us to play w...

Visual Studio Symbols stored/loaded from wrong place

Hello, I'm rather new to symbol servers and I've been experimenting with them and Visual Studio 2008 running Windows XP(SP3). I've encountered a wierd problem as my symbols are not being cached locally in the directory I've specified all the time. The possible reasons I have found for this si that the symbols(.pdb's) are being written t...

Preview a .NET color

The VS debugger gives me: _Color = "{Name=ff000040, ARGB=(255, 0, 0, 64)}" how can I "see" what color is? I tried a html page: <html> <div style="background: rgba(255, 0, 0, 64);">________<div> <h1 style="background-color: ff000040">hello</h1> </html> doesn't work. ...

Breakpoint when variable takes on a certain value.

I have something analogous to the following code... void function(int x) { // complicated operation on x blah blah } It all appears to be working fine except when x happens to be a particular value, say "273". But x being 273 is a rare event, 99.999% of the time it is some other value. Now I wish to observe the events whe...

How do I write an MVC 1 app with MVC 2?

I went to http://www.asp.net/mvc and the web installer offered me the option to install MVC 2, but not MVC 1. I thought MVC 2 was still in beta? Either way, I need to write an MVC 1 app. In visual studio, my only choice is either ASP.NET Web Application or ASP.NET MVC 2 Web Application. Can anyone advise? ...

how to use gettimeofday() or something equivalent with Visual Studio C++ 2008?

Hi, Could someone please help me to use gettimeofday() function with Visual Studio C++ 2008 on Windows XP? here is a code that I found somewhere on the net: #include < time.h > #include <windows.h> #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 #else #define DELTA_EPOCH_I...

Visual studio 'View in Browser' shortcut to specific page?

We are using Visual Studio 2008 and would like to know if there is a way to create a (keyboard or toolbar) shortcut for the 'View in Browser'-command, but with a specific page from a specific (loaded) project. We always start testing/debugging our app from "Somepage.aspx" from "Project-x". I would like to make a shortcut that does 'View...

Alternate cause of BadImageFormatException in .NET Assembly?

I'm working on a .NET 3.5 console application in C# which uses a VC++ unmanaged DLL. It ran without a problem when I worked on it a few weeks ago, but I'm coming back to it today and am now getting a BadImageFormatException ("An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)). My develo...

testing database application remotely

With advice from users here I was able to deploy an application that connects with sql server 2008 database on to a server. I have the connection string with data source pointing to my machine since the database is stored on my machine temporarily. I do not have access to another machine and wanted to test the application so I remotely c...

Adding a reference to a class library or service from a smart device project in VS.Net?

We're trying to debug a WCF service that is being consumed by a smart device project. The problem is that the service never gets debugged, only stepped over. Similarly, when trying to add a class library to a smart device project, the following error is seen: Cannot add a reference to a desktop project from a smart device project. An...

The best use of time at Visual Studio Launch 2010

Yes, this is a programming-related question, if a little indirectly. For better or worse, I am switching from Winforms to WPF in April. I am also going to be in attendance at the Visual Studio Launch in Las Vegas. I have a real need to get up to speed quickly in WPF, so my question is: What sessions are going to be the best use of my...

C# Constructor & List Question

Ohk, I am doing a c# program, and I get everything but this, I just can't understand what it is asking. I know how to create a list.. and how to create a constructor.. but this is where i get confused.. its probably way simple but i am missing it. I created 2 lists .. now i should create a constructor here is one my lists List<Perso...

Compile Error: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks

I have a Visual Studio 2008 solution that when I build, returns the following error: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks There is no reference file/line/column in the error. Becoming quite frustrating as the solution builds in the end, however I cannot debug. In the solut...

Build error in Visual Studio application

I have a solution that I am trying to build in Visual Studio which gives the following error. Project : error PRJ0019: A tool returned an error code from "Copy the executable to HAMR platform" The last few lines of the build log are as follows: Copy the executable to HAMR platform The system cannot find the path specified. Project : er...

ASP.NET publish button

Is there any button or shortcut that can make publish job instead of clicking to Build->Publish->... ...

Why are WCF Service Reference name spaces relative to my WCF client project's default namespace?

I have a WCF service with a namespace called: MyCompany.MyApplication.Configuration.ConfigurationHelperService On the client side I have an assembly called which consumes this service: MyCompany.MyApplication.Core (this is the default namespace) When I add the service reference, the namespace I'm asked to specify in the Add Service...