visual-studio-2008

Visual C++: linking takes ages in release mode

For an unknown reason, the linking step in my C++ app step takes just a few seconds in debug builds but over a minute in release mode. Does anyone have any idea if it's likely to be due to my project settings, or the external libs which are being linked in? Is it a common problem? ...

Web Access in Visual Studio 2010

I try to upgrade a plug-in that was on webaccess 2008. Whe were using WebAccessSession to get the user name of the current user logged (WebAccessSession.Current.Connection.UserName ). I Imagine now that it is in tfsConnection but I'm not sure. Is there any documentation that tells what really changes between Team Foundation Server 200...

MySQL.data config File - Visual Basic 2008

Hello I use mysql.data in my visual basic 2008 project. When I build my app and look into the RELEASE folder, I need the .exe.config file to run my app orless it would not work. How would I incorporate this into my application so that I don't need it when I debug my app? Thanks, Kevin ...

Can I mix C++ and C in a single project in Visual Studio?

I have a a Win32 DLL project in VS2008, it is written in a handful of C modules. Because I also want to be able to build outside VS2008, with no dependency on VS2008, I have produced a custom makefile, that does all the build and link steps. All this is set up just fine. Now I'd like to add a couple C++ modules to this DLL. I have mod...

DataTemplate at design time

In one of my first attempts with WPF I went a bit too far: I have an object that needs a different DataTemplate depending on one of its properties. In other words if (object.property=="multi") then the template should be a combo, etc. Now I 've went ahead and obviously used a DataTemplateSelector to apply the required template. And in ...

Creating a Data Generation Plan that Includes Correct Lookup Table Values

I'm just getting started with Visual Studio Database projects and loving the data generation plans I can create with it. However, in one of my projects I need to populate a lookup table with specific values. Since a foreign-key relationship exists between the lookup table and another table, I can't remove the lookup table from the data g...

Manipulation of Visual Studio 2008 Solution and Project files

.Net; EnvDTE; Visual Studio 2008; I've written a simple console app. to create a new instance of Visual Studio 2008; followed by opening a solution into this instance (making use of the EnvDTE namespace). In Windows Task Manager devenv.exe loads in the background but the solution task a long time to load. Actually the solution is quite ...

How to start multiple process shell commands in VB.NET 2008

I need to open several pdf, word and excel files from process.start like command, but only open one file at time. ...

How to make Visual Studio 2008 debugger halt at the line where an error occurs?

Whenever I am in debug mode my application closes whenever an error has occurred. The expected outcome is for the VS debugger to halt at the line where the error occurs. I am running VS 2008 on Win 7 Pro x64. Is there anyone out there with the same issue and has successfully resolved? ...

How can I get VS2008 winforms designer to render a Form that implements an abstract base class

Hi, I engadged a problem with inherited Controls in WinForms, and need some advice on it. I do use a base class for items in a List (selfmade GUI list made of a panel) and some inherited controls that are for each type of data that could be added to the list. There was no problem with it, but I know found out, that it would be right, ...

How to generate automatic properties (get, set) for Visual Studio 2008 C++

Having read this thread: http://stackoverflow.com/questions/3017/how-to-generate-getters-and-setters-in-visual-studio and tried (somewhat) the techniques described, I have failed miserably to graduate beyond the longhand way of writing Getters and Setters. While I recognize the conceptual advantage of encapsulation (private members o...

how do i check if a printer is installed and ready using C#?

Hi, How do i programmatically check if a printer is installed or not (and if there is one, how do i check if it is on and ready to use?) in C# using .NET 3.5 and Visual Studio 2008? Thanks in advance, ...

VS2008: Add custom build rule to a Property Sheet (vsprops)?

I'm using the CUDA .rules file which comes with the CUDA SDK for custom build steps in my project. To save on property duplication I'd like to define the properties of the CUDA rule in a .vsprops file. For some reason, the CUDA rule branch of the properties tree does not show under any of my property sheets, only under the main configura...

Adding icons to application

Hello I am trying to add to my application some icons via the code. When i run my executable from debug / release compilation folder it works good . But when I move my executable files to other folders it tells me that it doesn't find the icon files . Any idea how/where I should tell the compiler to add those files to my final exec...

Installer automatic repair feature

Applications I install with a VS 2k8 Installer Project MSI file check to make sure that no installed files have been deleted before the app launches and run the installer to fix this if they do. How can I turn this off so? eg so that I can include sample files with my app. EDIT: to clarify the behavior happens when starting the app v...

Find all variables that point to the same memory in Visual Studio

In Visual Studio 2008, is there a way of finding all the variables that point to the same object as another variable? So in the example below I would want to find out that ref1 and ref2 both point to the same object as original. var original = new List<string>() { "Some Data" }; var ref1 = original; var ref2 = ref1; Essentially I wan...

Intellisense broken after installing CodeRush Devexpress

I've recently installed CodeRush Devexpress, and now VS intellisense doesn't appear whilst I'm typing. Syntax highlighting also seems to be a little bit screwed, but my main worry is intellisense. Any suggestions for getting Intellisense back without doing an uninstall of CodeRush? Update: In the end, I uninstalled CodeRush, uncheck...

Static Code Analysis - Which ones to turn on first?

Hi, We're using VS2008 with the built in static code analysis rule set. We've got a relatively large C# solution (150+ projects) and while some of the projects (< 20) are using static code analysis religiously, most are not. We want to start enforcing static code analysis on all projects, but enabling all rules would create a massive di...

What exactly does Recycle app pool mean to the application.

In the properties, there is a checkbox checked that says "Recycle worker processes", which is set to 1740 minutes. What exactly does it mean to my asp.net code? Will everything be gone from the static variables or the Session/Application variables? What exactly does recycle mean to the code? ...

TFS: How do I view .cs files in the VS IDE when viewing details of a shelveset?

For our code review process we open the details of a shelveset to see all files that have been worked on. Right clicking and choosing "Compare" works great for existing ( modified ) files. But, when a file has been added I just want to view the file. Double clicking ( or right click -> view ) opens .cs ( and .sql )files in notepad. W...