visual-studio-2005

problem with VS 2005

I have a program I converted from vs 2003 to vs 2005 . It has worked fine so far until I changed one of the Dlls. Funny enough I had just One error . Maximum Number of errrors Exceeded and No other indication of other Error. Please I have been trying to fix these for like 2 days now. These Error is actually a compile time error. It s...

VS 2005 Install Problem

All I have a VS 2005 install set, which when executed seems to run OK however right at the end of the process it responds with the error message: The source '' is not registered on machine '.' or you do not have write access to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog registry key. At which point it backs out ...

VSLauncher starts wrong version

I have 3 versions of Visual Studio installed, and 3 projects that require a specific version. VSLauncher USED to look at the SLN or VCPROJ file and open the correct version of Visual Studio. Now it only starts the most recent version, regardless of the project. Note that this has nothing to do with the commonly reported problem with be...

How do you debug a visual studio add-in that throws an exception during loading?

I'm working on an add-in for Visual Studio 2005 in C#, and while everything works if I launch it from the debugger, actually installing it (adding the .addin and .dll to the add-ins directory) results in it not working. When Visual Studio loads it, I get the error "The Add-in "MyAddin" failed to load or caused an exception." With Error ...

Visual Studio creates (empty) folder in /bin for build action "Content" while publishing

I have a Web Application Project in Visual Studio 2005 that I publish using "Project" -> "Publish". The App uses some (text) files that live in a top-level folder; let us call it textfiles for example. What I would like to achieve is that Visual Studio creates a top-level folder called textfiles on the target when publishing. The folde...

Count rows against to SQL server (2005) table?

I have a simple question with two options to get count of rows in a SQL server (2005). I am using VS 2005. There are two options to get the count: SELECT id FROM Table1 WHERE dt >= startDt AND dt < endDt;; I get a list of ids from above call in cache and then I get count by List.Count. Another option is SELECT COUNT(*) FROM Table1 W...

Overloading methods in C#

Is there a way to simplify the process of adding an overloaded method in C# using VS2005? In VB6, I would have just added an Optional parameter the function, but in C# do I have to have to type out a whole new method with this new parameter? ...

Get application path of another executable within same solution.

Hi, I am using c#, VS 2005. I have one solution with two projects. Project1 needs to startup project2 after some checks. How do I get the executable path of Project2 from within Project1? I need a solution for both debug and live mode. thanks, KS ...

Is there a way to sort by more than one field in Crystal Reports?

I'm using Crystal Report with VB.NET in Visual Studio 2005. I have report that works if I pass in a list of List(Of Stuff). I had been sorting the report by one of the members of Stuff but a need now to sort first by one member, like Stuff.StatusCode and then by another member, like Stuff.ItemNumber. Can I do this just be having more ...

MSVC Shared Library Organization

I'm working on a library that is shared accross multiple projects. This library is composed of a number of dlls. I am having difficulty figuring out a reliable way to lay out the project structure. I am using Visual Studio 2005 on WinXP. I've got the library dlls in c:\my_project\library\bin, and the project executable in c:\my_proje...

DataGridView: Scroll bar does not get refreshed

I am working (fixing bugs) on a project which was written in VS 2005. There is one DataGridView control on a form. When it is first time loaded, the control's data grid is populated with rows of data from a collection manually or in codes. Actually, there is method PopulateDataGrid() do the job. There is also another control on the form...

How do I expand ALL collapsed code regions in VS2005

This is very frustrating, if I search for a variable in a vb file in VS2005 it won't find it if the code blocks are collapsed. How is this helpful? So I tried to expand ALL code blocks inside the file, without success. I've tried Ctrl+M but that only expands 1 block, and I've tried Ctrl+M, L but that expands the top class only and not...

how to rebuilt a specific dependent library with /MD mode in c++ VS2005 ?

One of my specific dependent library is built with /ML. How to rebuil it with /MD? Thanks in advance! ...

Localized License Agreements in Visual Studio Setup Projects?

I've added a EULA using VS2005's built in License Agreement UI form in a Setup Project. This form has a LicenseFile property that you set to an RTF file that displays the EULA. Assuming I have a number of translated RTFs, how can I make the EULA that is displayed point to the appropriate RTF localized to the user's Windows CurrentCultu...

Why does IPAddress.TryParse allow anything after a ']'

I'd like to use System.Net.IPAddress.TryParse to validate IPv6 addresses because I don't want to write my own reg exp :-) However, this seems to allow strings such as "(validIPv6)](anythingatallhere)" - for example, "1234::5678:abcd]whargarbl". Is there a reason for these being valid, or is this a fault? This is further complicated by...

Where do I control the behavior of the "X" close button in the upper right of a winform?

I'm venturing into making my VB.NET application a little better to use by making some of the forms modeless. I think I've figured out how to use dlg.Show() and dlg.Hide() instead of calling dlg.ShowDialog(). I have an instance of my modeless dialog in my main application form: Public theModelessDialog As New dlgModeless To fire up t...

Visual studio 2005 debugger won't stop at requested break points...

I have debug=true both in the web.config and in the requested file but it still won't stop. Thanks... ...

Can I use WCF on Visual Studio 2005?

I am about to start a project which consumes third party web services. Because of a legacy system, I am told that I can only use Visual Studio 2005/.NET 2.0. (Though I would have preferred Visual Studio 2008 on .NET 3.5) My understanding is that WCF was released with .NET 3.0. So is there any possibility to use WCF on Visual Studio 2005...

Visual Studio Custom Tools list

Where can I find Visual Studio's available custom tools list? ...

[c++] - Help about class and error: C3861

Can someone help me in this error? in "cDef.h" : #pragma once class cDef { public: static int STATE_LOGO; static int STATE_MENU; static int MESSAGE_ENTER; static int MESSAGE_UPDATE; static int MESSAGE_PAINT; static int MESSAGE_EXIT; }; in "GameState.h": #pragma once #ifndef _GameState_ #define _GameState_...