visual-studio-2005

Nested Loop scenario, getting values before exception in debug mode - Visual Studio

If I have a nested loop scenario and I am stepping into it in debug mode. Ex: for (int i = 0; i < listTest.Count; i++) { for (int j = 0; j < anotherList.Count; j++) { //Some logic that throws an exception } } Is there a way for me to know the values of i, j, listTest[i] and anotherLIst[j] just before the exception occur...

Problem adding Crystal Report to VS 2005 project

I'm trying to add a Crystal Report to a VS 2005 VB project. Here's what I do: Right-click on my project, Add -> New Item ... Crystal Report Add a report with the standard report wizard (or just a blank report I get this error: 'Site' is not a member of 'MyProject.CachedCrystalReport1' C:\BasProj\MyProject\MyProject\CrystalRepo...

error LNK2005: new and delete already defined in LIBCMTD.lib(new.obj)

Hi All, I have a Visual studio 2005 solution that has two projects. One is a static library and the other is a executable used to test the features in the static library. The static library uses MFC. I got the following errors when I built the solution. uafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int...

C# codes to get a list of strings like A to Z?

How can I get a list of strings from "A:" to "Z:" in C#? Something like this: List<string> list = new List<string>(); for (int i = 0; i < 26; i++) { list.Add(string.Format("{0}:", Convert.ToChar('A' + i)); } Sorry I don't have VS available for verification right now to verify. By the way, is there web site available to interactive ...

How to Disable a warning across projects in Visual Studio

I know this sounds bad but how can I disable/suppress a specific warning for all the projects in a solution. All of my projects are VC++ projects. Is it possible? If yes, how can this be done? Environment is Visual Studio 2005 ...

Translating C# Delegates from 2005 Project to C# 2003

Hi, I’m trying to compile in VS2003 that MouseTracking project that was made in C# 2005. I’ve got it fixed up except for one line: proc = HookCallback; This gives the error    Method 'MouseTracking.MouseTracker.HookCallback(int, System.IntPtr, System.IntPtr)' referenced without parentheses If I add parantheses to HookCallback, I...

Where is <inttypes.h> in Visual Studio 2005?

I'd like to use the C99 header file inttypes.h in a Visual Studio project (I'd like to printf 64 bit numbers). However, this file does not seem to exist in my install. Is this just not part of VS2005? Are there any alternatives? ...

How do I create a Sidebar for my application in VC++?

How do I create a Sidebar for my application in VC++? Something similar to the one on Windows Vista or even Google Desktop Sidebar, which can be docked to the desktop window rather than to the application window. ...

Visual Studio 2003 vs. Visual Studio 2005

I am personally only familiar with VS 2005 and am working on a project using VS 2003. So I've downloaded the solution to my local drive, opened it and had to fiddle with IIS a bit before it would run and now I also have the website in the inetpub folder. Can someone just explain using an overall picture what's going on. Am I editing th...

Is there a detailed "how to" on Unit Testing for Visual Studio 2005

I have never written/run a unit test. I am a relatively young programmer, but I do a LOT of reading. I've been searching for information on unit testing because I see a lot about, but I haven't come across anything that has really spelled it out for me from step 1. I have Visual Studio 2005 Professional. I will be starting a new wi...

Auto Build using VSS

How can I make my auto build in VSS? It should get the latest files from VSS and build the code using Visual Studio 2005 (VSS does not provide any build facility) at a scheduled time (like in the mid night). ...

What happend to the visual XSD editor in to the Visual Studio 2008?

Visual Studio 2005 has an excellent visual XSD editor: In VS 2008 I cannot find it anymore ... ...

vb.net VS2005 IDE hangs on Vista Home Premium

I've bought a new Vista Home Premium Toshiba laptop. Loaded Visual Studio 2005 Pro, then SP1, then the vista patch. Thus my versions are as follows: Microsoft Visual Studio 2005 Version 8.0.50727.867 (vsvista.050727-8600) Microsoft .NET Framework Version 2.0.50727 SP2 Open an existing or new solution / projects. Then go to type some c...

Open a VS 2005 Solution File (.sln) into memory

I would like to open into memory an existing .sln file. Example of a non-working method: private Solution2 OpenSolution(string filePath) { Solution2 sln; sln.Open(filePath); return sln; } If I have an instance of Solution2 then i can call the method Open; but how can i get an instance of Solution2? My goal is then to get...

Linker problem on VS2005 with VC++

Here's the scenario: Platform: VS2005 and language is VC++ Situation: There's just 1 assembly CMPW32. It has 2 projects: 1 is a DLL project called CMPW32 and the 2nd one is an .exe project called Driver They both share the same Debug folder under the main assembly folder. I have been able to successfully export a few functions from t...

Read USB Device Serial number in C#

Hi, Is there a way to read USB device serial number and data in a text file in USB using visual studio 2005? ...

Visual Studio 2005 Linker problem

I'm mostly new to Visual Studio, so I apologize if this is a basic problem. I have a solution which contains a number of projects. In project A, I have a pre-existing set of files that I added a new class to. Project B uses the functionality coded in that new class in Project A. Project A is built first, and a .lib file is generated,...

Ways to go about resizing controls in resizable windows?

I have two DataGridView controls, with three buttons in between them vertically, in a VB 2005 form that need to be resized and moved around on a form resize. The code below works, and does what I want. It takes the difference between the new size and the default size, splits the height difference between the two DataGridViews, and move...

Visual Studio -- how do I save debugging properties so they're applicable for all projects?

The accepted answer to the question http://stackoverflow.com/questions/298708/debugging-with-command-line-parameters-in-visual-studio accurately describes how to set command-line arguments for a given project: "In VS 2008, right click the project, choose properties, go to the Debugging section -- there is a box for command line argumen...

Problem after renaming .NET library

I'm maintaining a c#.Net (vs2005) library, let's call it fooLib, developed by a coworker. Now management has decided that we should change it's name to, say, barLib. So I have renamed it, changed some of the metadata (copyright info, etc), registered it in gac, removed the reference and added it again in each project which uses it, and ...