visual-studio-2005

Conversion Problem from VS2003 to VS2005?

Hi I am trying to convert a project from vs2003 to vs2005.after conversion completed some include headerfile.h statement missing and generates include "serialize" .how to fix this.even i copy and paste.it prompts for the source would be modified outside the environment msg appears. what can i do to fix this any idea??? Thanks in advance...

How to get a call stack for an intermittently crashing devenv.com?

I have a nightly build DOS batch script that invokes devenv.exe to build a solution file. Intermittently I observe a devenv.com crash. I get a DW20.exe "share your pain" dialog. 1) If Debug button is pressed, I am not presented with a usual "Choose your debugger" window. Rather, it does nothing. 2) If I launch a Visual Studio and ...

Visual Studio 2005 won't compile in Release Configuration mode

SUMMARY: How to compile in Release mode...I cannot get it to "take" what I want to do. I have a webservice project in VS2005 C# that I am trying to optimize. One of the things I've had my awareness raised on is the recommendation to compile in Release mode. I am not sure what to expect here but here is what I am seeing: I rightmouse on...

VirtualPath setting on Visual Studio 2005

I changed the virtualpath setting on the website properties from '/sitename' to '/'. Index.aspx page on the root folder correctly points to http://localhost:4144/sitename/Index.aspx. But, hyperlink for the image button on every page in the subfolder points to http://localhost:4144/Subfolder/Page1.aspx instead of http://localhost:4144/si...

DataGridView and DataSource: Any way to display fields linked to by foreign keys easily?

I have a three-tier Windows Forms DB application in VB.NET. I'm using VS 2005. I'd like to display records in a table in a DataGridView. I can already display the records as is by binding the DataSource to the business class that talks to the DB class: Dim assetList as List(Of Asset) assetList = DB_Asset.GetAssetListOrderByID_Asset ...

Automatically expand C# 3 syntactic sugar

Hello I'm in trouble with SlimDX samples, which just pretend to support VS 2005. Well there are VS2005 solution/project files but source code itself contains C# 3.0 new language features (mostly automatic properties). It would be hell to convert this stuff to C# 2.0 by hand. Is there any tool, which does it automatically? Thanks! ...

Create DLL : How can I use a dll to create a new dll ?

In visual studio 2005: I want to create a dll base on another dll. For example : I want to create a DLL -- new.dll, and it uses a DLL -- old.dll; How can I create a new.dll have old.dll inside? I mean, I don't need to include old.dll in my project when I use new.dll? Thanks for any advisement. ...

Where is the class view for a code behind file in VS 2005

I can't seem to find any of my code behind files in the class view tab. I can see other classes that I have added but none of the code behind files. Is there a reason for this? I am missing a setting or something? It is quite irritating trying to navigate my way through the code all the time. I can see all the other classes just fine ju...

Can the working directory be set in the project (.vcproj) file?

I have a script that generates a .sln file and a few .vcproj files for visual studio 2005. I need to set the WorkingDirectory option but its specified in the .user file. A file we cannot currently generate. I found the vcproj file definition at msdn, but it seems that this option cant be set from there. How does one specify "Configura...

In C#, how to change colour of newly added text in Text box

Consider my windows application built using C# VS 2005 displays certain contents in a multi lined text box. Now when i add some new text, it should appear in a different colour. i.e i need to differentiate the text which gets displayed when my project is run and the text that i enter in the text box. how can i do this.? ...

application couldn't be initialized error (manifest file problem)

Hi there. I am trying to use a library (.dll) in my project. Everything seems to be set up fine. It all works in release mode. When I go debug on it, I get this darn error on startup: ldr: ... application couldn't be initialized error (or similar, I translated it) I learned that this has to do with manifest files. I fumbled around a ...

Attach Debugger to IIS instance

I have IIS 5.1 on a XP machine, and visual studio 2005. How do I go about attaching my debugger to IIS instance. BTW: I'm not seeing the IIS process within the running processes or probably I don't know what to look for . ...

How do you add conditional breaking based on another breakpoint being hit? Visual C++

Hi, I have a bunch of generic code that is used a lot, which i'd like to poke into in order to deal with a bug in a certain specific case. So I'd like to break on a set of breakpoints only if some other breakpoint has been hit. Is there a way to do this in Visual 2005? I'm using C++ code. Thanks! ...

Visual studio, how to output time taken to build?

Hi, I'm using visual studio 2005. I rememeber in the back of my mind there's a way to output the time taken to build a given project. Can anyone remember what that switch is? Thanks Rich ...

When and why is an std::__non_rtti_object exception generated?

I'm using Visual Studio and performing a valid dynamic cast. RTTI is enabled. Edit : Updated the code to be more realistic struct base { virtual base* Clone() { base* ptr = new base; CopyValuesTo( ptr ); return ptr; } virtual void CopyValuesTo( base* ptr ) { ... } virtual ~ba...

Weird Click Behavior in VS 2005

I've noticed in Visual Studio (definitely 2005, I can't say for other versions), if I click on something no topmost in z-order (either in another pane of the interface, as when I have the window split, or when another program had focus), VS thinks I made a double-click instead of a single-click. This is very annoying in the case of havin...

VS 2005 Toolbox Messed Up

I'm not sure when it happened, but at some point, my Visual Studio 2005 grew a group named "#13119" that I can't delete (it even shows in the toolbox when I have a code file open - it's the only thing in there. Is there any way to fix this? I tried resetting the toolbox, and that didn't help. It's not a really big deal, but rather irkso...

Very strange visual studio behaviour with excessive lines of whitespace

Hi, yesterday we updated to a new version of some middleware we are using, and had a very bizarre merge problem with perforce... it had created approximately 10-20 thousand lines of white space in one of my functions, this all compiled fine, upon running the program it crashed indicating some memory issue, tracing back through the call s...

Visual Studio Regex help

I am using regex in Find/Replace in VS IDE. I need to replace the string message="My message" in all aspx files with an empty string. The html looks like this <input id="test" message="My message"/> I am trying to use the regex to find for message="{.*}" but it doesn't work. ...

How to show source code in debug when using .lib and dll

I am working in VS2005, I have a part of freeimage source code. I compile it into .lib and dll. When I debug the program, I want to step into freeimage source code ,however vs2005 do not know which code is the freeimage.lib freeimage.dll compiled from, How can I let vs2005 know it. I want to step into freeimage source code, when using i...