visual-studio-2005

VS2005 C++ compiler problem including <comdef.h> in MFC application

I am having some trouble converting an old project from VS6 to VS2005. At one place in the code it uses the type variant_t so it includes comdef.h for this purpose. comdef.h then includes comutil.h which generates these errors for me: c:\program files\microsoft visual studio 8\vc\include\comutil.h(978) : error C2535: '_variant_t::_varia...

Why Linq Preview for VS2005 doesn't create objects?

I'm using Linq CTP May 2006 for VS2005 (I have to use it, so please, don't suggest VS2008). The problem is that it doesn't create objects in proper way. I see several solutions: 1) Use DLinq (Disadvantage: doesn't support Language integrated queries) 2) Use SqlMetal (Disadvantage: the same) But none of them suites me. So the question i...

Is running a CrystalReport through a .NET application differs from running it using any CrystalReport Designer?

Hi all. I designed a CrystalReport using CrystalReport Designer that embedded with VisulaStudio.NET 2005, while running the report using report viewer, it runs properly and retrieves the required data. While running it throught the application, no data is retrieved?! Is running a CrystalReport through a .NET application differs from ru...

VC++ Resource Editor Problem?

I have a working C++ project on VS2005, I made a small change which causes a problem and I dont know what is it and how to resolve, I added a new string entry in the resource file using the VS2005 RC editor (the default one in VS2005) but after compilation I get two compilation errors Error 22 error RC2135 : file not found: BEGIN f:...

How to get Recently modified Method Names from a class File Visual Studio

Is there a way to find which methods were recently modified in a given class file using Visual Studio IDE 2005 ...

How to Set Wallpaper as Background in VS 2005 IDE

Is there a way we can set an Image instead of plain colors as VS 2005 IDE Background ...

VS2005 Custom Build Rules: How to make Categories properly show?

Hello, I've created a .rules file which shows up correctly in the Property Pages for my project. The problem is that Categories used to sort the properties don't show up correctly. Only the categories for the property page defined first in the .rules file show up. In this image, the categories would be "General" and "Project Defaults" ...

How do I persuade a VS2005 msi to upgrade?

I have a Windows service written in C# using VS2005. The installation is via a wizard that calls msiexec to install the msi file also created using VS2005. I am having trouble generating an msi file that will upgrade from one version of the service to another. The wizard program handles detection of the currently installed version, sto...

How to get average of a column in terms of another column?

Hi guys. How to get average of a column in terms of another column and put this value in a third column, and this value will be evaluated for each retrieved record? "How to perform an opertaion on two columns in a report and insert the result in a third column?" FYI: I'm using CrystalReport Designer embedded with VisualStudio.NET 2005...

Why does Visual Studio want to check-out a File when opened?

Why does Visual Studio want to check-out a File when opened? I just double click the file to open it and Visual Studio wants to check it out. I did not make any changes to it. I just opened it. i.e. In Solution Explorer I double click ctlEmployeeEdit.vb and the first thing Visual Studio wants to do is check-out that file. I got VS set...

Making build process independent of GAC

How can we make our build process (Dev Studio 2005) for a .NET project completely independent of what is installed on the GAC on the particular machine that it is running on. Here's the problem we're trying to solve: Depending on what assemblies happen to have been installed into the GAC, our build process generates different .NET assem...

Copy-paste code from Visual Studio, but paste UNFORMATTED code

Is there any way to force Visual Studio to copy selected code to the clipboard as unformatted text? When I am copy-pasting code into Word or more often Outlook I have to do it via Notepad to get rid of the formatting...there has to be an easier way! ...

What causes UMDH to fail to give stack traces

I've used UMDH a dozen times before, never with any problem. Suddenly I don't get a function names in the stack traces in my dump files - just a series of addresses. I've got ust enabled: gflags exe_name +ust I start exe_name, then I do umdh -p:pid one.txt umdh -p:pid two.txt I look at one.txt and two.txt and they have no indicat...

What AddOns/AddIns are available for VS 2005 IDE

I want a complete list of AddOns/AddIns available for VS 2005 IDE ...

psexec inside visual studio

Hi there, I've been trying to get psexec to run executables on remote machines from custom build tasks in visual studio. All of these commands work from the command line but running it from an application seems to be a problem. Some commands work, on other psexec hangs and consequently so do msbuild and visual studio 2005. I'm calling S...

VS 2008 upgrade is changing my dataset designer namespaces

I've been upgrading our solutions from VS 2005 to VS 2008; still targeting the .net 2.0 framework. The conversion wizard is simple and I've never had a conversion failure. The only beef that I've had so far is that I can't immediately compile after the upgrade because VS has changed some of my namespaces causing naming collisions. For e...

Working with different versions/branches of the same Visual Studio 2005 solution

This is kind of a usability question for using VS2005: I have different branches of the same Visual Studio 2005 solution checked out from version control. The solution and project files are also under version control. On my development workstation, I sometimes have multiple instances of Visual Studio opened on a different version or bran...

C++ What's the max number of bytes you can dynamically allocate using the new operator in Windows XP using VS2005?

I have c++ code that attempts to dynamically allocate a 2d array of bytes that measures approx 151MB in size. When I attempt to go back and index through the array, my program crashes in exactly the same place every time with an "Access violation reading location 0x0110f000" error, but the indicies appear to be in range. That leads me ...

Controls on an MDI parent background

Is it a good idea to place controls on the background of an MID parent window? I've added a split container to the MDI window which displays as expected however when I try to open any other forms in the same window they show BEHIND the SplitContainer. The only way to get them to popup is if I use ShowDialog to display them. Unfortunately...

How to change Visual Studio exception message language to English while debugging

I am working on machine with XP Dutch version installed on it. Visual studio 2005 is installed in English. I'm having the annoying problem while debugging that all .NET Framework exception message appear in Dutch, which make them really worthless. I tried to change this to English by setting the regional settings in the control panel to ...