visual-studio-2005

XPathNavigator.SetValue Throws NotSupportedException

I have the following code, whose last line results in a NotSupportedException on every execution, and I haven't found a way around it. This hypothetical analogous code finds a "book" with a specific title, with the goal of updating it to the new title. It does find the correct node, but fails to update it. XPathDocument xpathDoc = new X...

Pointer stability under Windows Vista

I have been using Visual Studio 2005 under Windows XP Pro 64-bit for C and C++ projects for a while. One of the popular tricks I have been using from time to time in the debugger was to remember a numeric pointer value from the previous debugging run of the program (say 0x00000000FFAB8938), add it to watch window with a proper typecast (...

Issue with passing parameters by reference into public shared methods

I have a List(Of AddlInfo) with AddlInfo being an object. I'm trying to pass addlInfoList by reference into a function of another class: Public Shared Sub SortAddlInfo(ByRef addlInfoList As List(Of AddlInfo)) addlInfoList.Sort(AddressOf Comparer) End Sub Private Function Comparer(ByVal x As AddlInfo, ByVal y As AddlInfo) As Intege...

how do you setup a db data source in a visual studio 2005 deployment

I'm working on deploying a visual studio 2005 windows application executable with an embedded crystal report using visual basic. It seems to install everything just fine, however, the system dsn isn't being setup. How do you configure a setup project to setup the system dsn during the installation? thanks in advance ...

Release resources when stop debugging

Hello, I use Visual Studio 2005 & C#. In my FormClosing event I release some resources, that my application uses. But when I debug it and decide to stop (Stop debugging), than FormClosing event doesn't fire and my resources aren't properly released. How can I avoid this? ...

Spider Solitaire code

Hi If I want check or see the code in C# for the spider solitaire game where should I go ? I want to know how the game work and how the code is organized , any Idea ? or link ? or e-books? thanx in advance ...

Why does new / malloc fail on Win x64 although there is plenty of free RAM?

I have a strongly recursive function, that creates a (very small) std::multimap locally for each function instance using new (which recurses to malloc/calloc in the std lib). After some hundred recursions new fails although i am using a native 64Bit application on Windows XP x64. The machine has 10 GB RAM, The application only uses about...

Shared method in VB.NET cannot handle this why?

(I tried with this question but this code isolates the problem better.) I have this code: Public Shared Sub PopulateTextFields(ByRef stuffList As List(Of Stuff)) Dim aStuff As New Stuff For Each aStuff In stuffList DoStuff(aStuff) Next End Sub Private Sub DoStuff(ByRef theStuff as Stuff) .... End Sub I get th...

Why should i use WinDbg?

Possible Duplicate: Why use windbg vs the Visual Studio (VS) debugger ? I Use Visual Studio 2005 for C++ development. What does WinDbg give me, that Visual Studio doesn't? I know its good for client installations and remote debugging, as it's easy to install. Other reasons? What are your favorite functions/commands? ...

How to open header file (.h) in visual studio 2005

I'm tired of right clicking on the header file in c++ and choosing open document "blahblah.h" Is there a keyboard shortcut? ...

Visual Studio 2005 + ASP.NET Web Application + Referencing Code

Hello, I have inherited a code base that does not compile properly. The project is a Visual Studio 2005 web site. I want to move it to a web application. The first thing I am trying to do is move the "App_Code" directory over. The pages in the application rely on some class objects that are defined in the "App_Code" directory. Visual S...

How clean is uninstalling the Service Packs from Visual Studio 2005?

This is a total dah question but I hope somebody can help me out. I have VS2005 SP2, nonetheless, I really need to use VS2005 No-SP to compile the release version of our product. Is it "safe" to uninstall the service packs? What I mean by this is: What implications should I take into consideration? Will be things left from either Ser...

undecorate function names with visual studio sdk

To undecorate mangled C++ names that Visual Studio generates, you can use undname.exe. But what if you want to avoid the overhead of creating a full-blown process every time you need undecoration? Is there any equivalent functionality in the Visual Studio SDK (should be supported in VS2005)? ...

Calculate time taken by each cpp file to compile in VS2005?

Hi Guys, I am writing a tool which can be used to make the matrix for the current performance of the project. For that I required to get the time taken by each file to get compiled. I tried with the following option but didn't succeed :( Tools->Options->Proejcts & Solutions -> VC++ Project Settings -> Build Timing-> Yes From the above...

How to end process after closing whole application in C#.NET ?

I have a .NET 2005 (C#) desktop application, in which there is a login form and an MDI form, which then have multiple subforms. All other forms are opened in MDI form only. After a user logs in, I hide the login form and then show the MDI form, but when I close the MDI form, my application process does not end because the login form is...

Qt - Switching from shared build to static build? (VS 2005)

The situation is this: I have a shared (DLL) build of Qt 4.5.1 and some reasons given by the project lead, I have to convert to Qt 4.5.2 static. I am using the Qt Visual Studio plug-in to manage my project. 1) Would DLLs (Qwt 5.2 and other Qt solutions) compiled with the shared Qt 4.5.1 work with an EXE compiled with static Qt 4.5.2, or...

Visual Studio IDE error

When i am going to run my project i am getting this error"F:\TestProjects\CallDll\CallDll\bin\Debug\CallDll.exe" is missing.Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to ponint at the correct location for the target assembly Can any one tell me the solution ...

Add custom properties for references in Visual Studio 2005

I make use of this technique by Scott Hanselman for merging multiple assemblies as part of building my solution. It works well but it's a bit of a hassle having to hand-edit my .csproj/.vbproj files. Is it possible to add custom properties to the VS property grid for references? I'd like to be able to add a boolean property to indica...

What does version info mean in Visual Studio About Box?

In Visual Studio 2005's About Box, the installed products have a (version?) number associated with them. A couple of our dev machines differ: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 SP2 Installed Edition: Professional ... Microsoft Visual C++ 2005 77626-009-142...

Getting "not defined" error even with import

So basically this code was working fine before. I had some computer issues and had to move the development folder around and when I reopened it, I am getting a "Type 'SqlConnection' is not defined" error on all of my pages, even though I am importing System.Data.SqlClient. Intellisense seems to see that its imported, but I get the erro...