visual-studio-2005

"There appears to be a discrepancy between the solution's source control ...."

We get this error in Visual Studio 2005 and TFS very often. Can anyone help us pinpoint the cause for this message? The full message is: There appears to be a discrepancy between the solution's source control information about some project(s) and the information in the project file(s). To resolve this discrepancy it will be necessary...

Moving from vb.NET (2003) to vb2005 What are some of the benefits?

We are changing from vs2003 to vs2005 and use vb as our primary language, I am looking for some of the changes to VB that will be helpful in our ASP.NET development. Can someone point me to a list (maybe from microsoft?) or provide some of their favaorite differences between the two versions? ...

How do you add external libraries for compilation in VC++?

I've worked with a couple of Visual C++ compilers (VC97, VC2005, VC2008) and I haven't really found a clearcut way of adding external libraries to my builds. I come from a Java background, and in Java libraries are everything! I understand from compiling open-source projects on my Linux box that all the source code for the library se...

How to attach VS2005 to process running on WinCe 5.0

What applications/modules/dlls do I need on the Window CE 5.0 device in order to be able to attach Visual Studio 2005 to process running on the device ? ...

How do you create a Visual Studio Solution File (.sln) in the same directory as the web project?

I'm using VisualSVN client and server and one of the requirements for web projects to work as expected is to have the .sln in the same directory (root) as the other files. I thought it was as simple as removing all the extra parent paths ../ and other relative paths and saving it. However when I try to open it just locks up Visual Studi...

COM class factory error

I've been testing an application using my machine as a server, and everything's going fine with it, but when I try to set it up to run on the test server, I get this error: Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154. Any ideas? Thanks ...

VS2005 IDE: Automatically accept code change suggestions?

I'm pasting test data from a SQL results into my code. I'm using the SQL results to manually populate a strongly typed dataset. However, the data types need to be casted to the correct data types. VS2005 tells me that I need to cast each field as an int, decimal, date, etc., but I'd rather not have to click this hundreds of times or m...

Linking against a .dll version older than the installed one in Visual Studio 2005

Please excuse the large amount of background info, but this is a fairly specific question. I have a Visual Studio 2005 project that creates a .dll file. This project depends on a .dll from another company, "BigCorp", which gets installed with BigCorp's software. Ideally the dll I create should be usable with any (backwards compatible) ...

Dealing with C++ "initialized but not referenced" warning for destruction of scope helpers?

In Visual Studio, I often use objects only for RAII purposes. For example: ScopeGuard close_guard = MakeGuard( &close_file, file ); The whole purpose of *close_guard* is to make sure that the file will be close on function exit, it is not used anywhere else. However, Visual Studio gives me a warning that a "local variable is initial...

Using VS2005 and VSS is there a way to add comments to checkins?

All the googling around hasn't found an answer for me yet... I have one of our devs that is using VSS and VS2005. Checking in works (abeit quite painfully across the 'Net) but there doesn't seem to be a way to put comments into a checkin (unless you embed it in the source file maybe?) I'll be one of the firs to admit that my knowledge ...

How are NUnit assemblies appearing in VS "Add Reference" dialog?

So after installing NUnit, the assemblies (nunit.framework, etc.) now appear in the References > Add Reference dialog, but they're not in the %WINDIR%\Microsoft.NET\Framework\v2.0.50727 dir and there is no NUnit registry entry for the Assembly Path (i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramewokr\AssemblyFolder). There's also no...

How do I update an Environment Variable in a Visual Studio Deployment Project

I would like to append a path to the PATH environment variable in a Visual Studio 2005 deployment project. How does one do this? ...

How to get a webserice to serialize/deserialize the same type in .net

I want to use typed parameters in the web methods. But when visual studio 2005 creates the web reference on for the client it automatically creates it's own types. I am using a .net web service and a .net client. For example: < WebMethod > _ Public Function Foo() as ServerNamespace.Bar ... End Function at the client the method beco...

Where is the documentation for My feature in VB.Net?

No I'm not being a wise guy ... For those fortunate enough to not know the My class: It's something that was added in VB 2005 (and doesn't exist in C#) and is best described as a 'speeddial for the .net framework'. Supposed to make life easier for newbies who won't read which framework classes they should be using Dim contents As Stri...

Export all symbols when creating a DLL

With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere and without hand-creating .def files. Is threre a way to do this? ...

How do you compile gnu flex in Visual Studio 2005/2008?

I can't figure this one out. I can download a win32 binary of flex 2.5.4a from gnuwin32, but I'd like to build the latest version (2.5.35) using Visual Studio 2005. I suppose I could build in in cygwin, but where is the fun in that? http://flex.sourceforge.net/ ...

Visual Studio Solution Explorer Locks Up

I have an issue with Visual Studio 2005 w/ TFS where, from time to time, the Solution Explorer will stop responding to interaction. Instead it does the beep, like I'm trying to click on a parent window with a modal dialog visible, but there isn't one. The only thing I've found to do so far, is to restart VS, but that's kind of a pain b...

Build Incrementally in VS 2005

We have a 50 projects solution in VS 2005. Is any way to get incremental build if nothing was changed? It is kind of doing it now, but it executes all prebuild and post build events for each project. Is any way to prevent it? ...

How to use VisualSVN with a solution shared between VS 2005 and VS 2008?

Hi, After looking at other questions related to sharing solutions between VS 2005 and VS 2008 it seems that the way to go is to have two solution files (one for VS 2005 and one for VS 2008). However, if the solution is under source control (VisualSVN in our case), how would we maintain two solution files and not keep overwriting one ...

Native VC++ using external (not project) dll reference how to specify path to dll

I have a native VC++ project that uses a dll (which is not in a project). Now, I must to put the dll in one the "Search Path Used by Windows to Locate a DLL" link but I don't want the dll to sit in the exectuable or current or windows or system directory. So my only option according to that is adding the path to the %PATH% environment...