visual-studio-2005

MDI Child refresh/repaint problems (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2)

Hiya - been pointed at you guys by a friend of mine. I have an MDI application (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2) and one of my forms is behaving very strangely - not repainting itself properly where it overlaps with another instance of the same form class. The forms contain a custom control (which contains various DevExp...

Console Application - Can't Catch Unhandled Exception

I have written a very simple C# Console Application which will open a Crystal Report, refresh it and save it as a PDF to a specified location. When running within VS2005 everything runs fine; the pdf file is generated as expected. When I copy the .exe to my root C: drive and run it from the command line I get a dialog box stating that "...

Visual Studio 2005 Javascript debugging

Is it possible to stop visual studio from debugging external javascript? We have a window which displays external webpage. If the page contains bad javascript then my entire session comes to a halt and breaks. Hitting continue won't move past the problem. It's really irritating and tedious, is there an equivalent setting to "just debug ...

msvcr90.dll dependency in VS 2005 C++ project

I've created a DLL project in VS 2005 for native Win32/unmanaged C++, call it myProj.dll. It depends on a 3rd-party commercial DLL that in turn depends on msvcr90.dll (I assume it was built from a VS 2008 project). I'll call it thirdParty.dll. My DLL project builds just fine in VS2005. I've built a test app (again, VS 2005 Win32 C++)...

how to set MSBuild VC++ Directories

I have a solution of mixed VB.NET and C++ projects. When using Visual Studio 2005 you can set the "Tools->Option->Projects and Solutions->VC++ Directories" to help the compiler find your include files. When building the same solution with MSBuild I don't see how to pass these settings. The C++ won't compile without this path specified. W...

Debugging in a dll with both managed / unmanaged code fails in VS 2005. Why?

I want to debug a piece of code written in C++. The problem is that the dll is mixed - it contains both C++ and CLI (managed C++). The environment is VS 2005. My entry point is a very simple executable project, written in C++ that just starts the code in the mixed dll. The problem is that: if I let the "Debug type" as Auto for both...

Why is my UserProperties collection empty ?

Hi, I'm using the Outlook 2003 PIA and VS 2005 to access items in a public folder. The item.UserProperties collection always comes back empty, despite the items having several user defined fields. If I add a property in code using UserProperties.Add, it is saved correctly with the item and is then available in the UserProperties next ...

"Step over" when debugging multithreaded programs in visual studio

One thing that annoys me when debugging programs in visual studio (2005 in my case) is that when I use "step over" (by pressing F10) to execute to the next line of code, I often end up reaching that particular line of code in a totally different thread than the one I was looking at. This means that all the context of what I was doing was...

Source Safe not saving "exclude" SQL SMO dll settings in Visual studio 2005

We use VS2005 and SourceSafe here at work for a project. I have this Setup and Deployment project for a couple of projects which have SQL SMO dll dependencies. I do not want to deliver these DLLs, so i set them all to "exclude" from the target. However when I check the solution in, and pull it back out from VSS, four of those 8 dlls come...

Visual Studio 2005 not building solutions

I have a solution with about 20 projects (that use Devexpress controls) in and when I do a normal solution build (ctrl-shift-B) it says everything is completed sucessfully when in actualy fact it has done nothing. To get it to build i have to right click on the solution and use the batch build option. I've tried deleting the solution a...

What are some reasons I might be receiving this "Symbol not defined" error in Visual Studio 2005 (screenshot included)

When debugging my VS2005 project, I get the following error when I attempt to step into the function that returns the vScenarioDescriptions local variable it's struggling with... As I continue to walk through the code and step into functions, it appears I'm getting this error other local variables as well. Any ideas? Thanks in advan...

How has your coding standards document changed when you upgraded to C# 3.0 / VS2008?

We are in the process of upgrading our projects from C# 2.0 / VS2005 to C# 3.0 / VS2008. As part of the upgrade, we are adding some items to our coding standards document. How would (or did) you change your coding standards document when upgrading from C# 2.0 / VS2005 to C# 3.0 / VS2008? ...

How to include sub-directories in Visual Studio?

Hi I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2005 edition) to set one include path that Visual Studio will search also the sub-directories for header files? ...

VS2005 Code Analysis: CA1063 (call dispose(true) and supress finalize) - with logging.

I'm trying to adhere to the VS2005 code analysis rules for a new project. I have this method: public void Dispose() { Console.WriteLine("Dispose() called"); Dispose( true ); GC.SuppressFinalize(this); } (The console call will become a log4net call at some point, and we're always interested in logging dispose for some of o...

How to add WCF service reference in Visual Studio 2005?

What do I need to allow Visual Studio 2005 to add WCF service reference to a project? I know I should just use Visual Studio 2008, but I'm preparing for a "what-if" situation where the client does not have VS2008 just yet. ...

How do I resolve: "error C2039: '{ctor}' : is not a member of" in Visual Studio 2005?

I am extending a template class using C++ in Visual Studio 2005. It is giving me an error when I try to extend the template base class with: template <class K, class D> class RedBlackTreeOGL : public RedBlackTree<K, D>::RedBlackTree // Error 1 { public: RedBlackTreeOGL(); ~RedBlackTreeOGL(); and a second error when I try to inst...

Linker error after porting C++ application from VC6 to VS2005

I am getting an error while porting my application from VC6 to Visual Studio 2005. Does anyone have any idea what this means? mfcs80.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj) ...

What causes Visual Studio 2005 Out-Of-Order Command Line Builds?

In Visual Studio 2005, I have a solution with explicit dependencies specified via the Project Dependencies dialog. When I build via devenv /rebuild Release for example, the projects are built in a different order than when loading up the IDE. This is an order not allowed by my specified dependencies. In some cases, devenv crashes :( ...

Viewing registers in a crash dump

Is there a way to view the register contents in each stack frame in a crash dump? The registers window seems to contain the registers when the exception occurred but it would be useful to be able to see their contents in each stack frame. ...

SSE4 instructions in VS2005?

I need to use the popcnt instruction in a project that is compiled using Visual Stdio 2005 The intrinsic __popcnt() only works with VS2008 and the compiler doesn't seem to recognize the instruction even when I write in a __asm {} block. Is there any way to do this? ...