visual-studio-2008

Can Visual Studio warn me when I forget to dispose an IDisposable object?

Can Visual Studio 2008 be configured to give me a warning when I forget to dispose an object that implements IDisposable? ...

Avoiding Visual Studio designer errors when WPF resource is defined in separate project

How can I avoid Visual Studio designer errors when a WPF resource is defined in separate project? I have three projects in a composite WPF application: the main application, an "infrastructure" library, and a "module" library. The main application references the other projects via their output DLLs (the projects are not located in a sin...

Installer only installs to root on x64 systems

My MSI installer created with Visual Studio 2008 refuses to install the app in the designated directory and instead will only install the app in the root directory. If I take the same MSI and install in on an x86 system the installer installs the app in the directory specified. I am developing the app and MSI on Server 2008 and Win7 RC...

Visual C++ 2008 Intellisense interprets CLR keywords on non-CLR project

I'm using Visual C++ 2008 SP1 Express Edition, and as far as Intellisense goes, it is interpreting CLR keywords (like event), instead of treating them as regular C++ identifiers. This is not a CLR project, so I'm at a bit of a loss - any ideas on what's going wrong / how to fix? I wasn't able to find anything that sounded promising in ...

How to reference System.Xml.Linq in SQL Server 2008 CLR Object?

I want to create a CLR Stored Procedure for SQL Server 2008 that references the System.Xml.Linq assembly. According to the documentation (http://msdn.microsoft.com/en-us/library/ms403279.aspx) this assembly is safe for use in SQL Server 2008. However when I attempt to add a reference using Visual Studio 2008 (Team Suite with GDR R2 ins...

Compiler errors from simple Visual C++ project

Hello I'm trying to make program run. When I try Hello World in win32 project/.cpp file I get bunch of errors 1>------ Build started: Project: HelloWorld3, Configuration: Debug Win32 ------ 1>Compiling... 1>hello.cpp 1>...\projects\helloworld3\helloworld3\hello.cpp(7) : error C2065: 'cout' : undeclared identifier 1>...\projects\hellowo...

Visual Studio 2008 - Add Component from Source Code

I want to add a component to the toolbox so that I can drag and drop it onto my windows form. I know I can add items to the toolbox by right-clicking and going to "Choose items", but what if I only have the source code for the component? How do I add it? ...

making software setup package issue

Hello everyone, I am making software setup package, and previously I am using Inno Setup, and it works very good. The current issue I met with Inno setup is, it does not support all languages for the setup UI, for example Simplified Chinese. The setup project of VSTS 2008 supports almost all languages, but it does not support invoke a...

MSBuild inconsistent compiler flags

I have two VS2008 solutions. Both contain a web application. For both web apps I have added a web deployment project. When I build the first one this is the command line I see in the output window. C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /project.csproj -p C:\Projects\web\project\project -u -f -d .\T...

What is the priority on NoStepInto entries in VS2008?

I've been looking into the NoStepInto feature of Visual Studio. Andy Pennell's post How to Not Step Into Functions using the Visual C++ Debugger has been extremely helpful. But as far as I can tell, in VS2008 the string name of the rule no longer has to be an integer, and no longer has any effect on the priority of the rule. I have ...

VS2008 - Outputting a different file name for Debug/Release configurations

When building a C# application with Visual Studio 2008, is it possible to set a different output filename per configuration? e.g. MyApp_Debug.exe MyApp_Release.exe I tried a post-build step to rename the file by appending the current configuration, but that seems a scrappy approach. Plus it meant that Visual Studio could no longer fi...

CrystalDecisions,.Shared.dll versioning issue

I'm trying to deploy an aap using Crystal reports, asp.net 3.5 developing in Vs2008. On my dev boxes, I have CrystalDecisions.Shared 11.5.3300 and 11.5.3700. the only reference I can add in is to verison 11.5.3300, but the only version deployed on my QA server is 11.5.3700. I keep getting the following error: System.IO.FileNotFoundEx...

Excel 2007 DataSource connection error in Visual Studio 2008 unit test

Hello, I am trying to use an Excel 2007 as a data source in my VS 2008 Test Project a unit test. Config file: <configuration> <configSections> <section name="microsoft.visualstudio.testtools" type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.Un...

Any quick way to run a file in Visual Studio ?

Is there any quick way to run a file(.cs) in VS 2008 with a Main method ? Often you'd want to test some mockup code, Going Alt+f7(Project->ProjectName Properties) and changing the Startup object from a dropdown list is quite cumbersome. ...

add filter row to gridview

I want to add a row to that will contain dropdowns,search textboxes, and maybe other controls to allow filtering to the gridview. I've looked at This Question but it did not help me. How can I add a row so i can add these controls to my gridview? Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebCo...

Is it possible to create a table of contents with page numbers for an RDLC report?

I have a fairly large report I'm trying to create as an RDLC in Visual Studio 2008. There are several sections that I plan to create as subreports and then compile them all into a master RDLC. However, one of my client's requirements is that it have a table of contents with page numbers indicating where to find the various sections of th...

C++: Replacing part of string using iterators is not working.

Hello, I am writing a simple program, which is trying to find next palindrome number after given number. As for now, I am stuck at this point: string::iterator iter; // iterators for the string string::iterator riter; //testcases is a vector<string> with strings representing numbers. for (unsigned int i = 0; i < testcases.size() ; ...

Write C# snippets that end by hitting TAB

The C# code snippets I create can only be ended by hitting Enter, while the built-in snippets such as 'struct' can be completed by tabbing through the custom fields. It's not a big issue but it is annoying. I tried copying the entire XML for the struct snippet into my own, replacing only the shortcut name. Even so I had to hit Enter to ...

In VS 2008 one of the ascx file saves very slow but other ascx files are working fine.

One of the ascx file saves very slow in source (html) mode but other files in same project are working fine. I have deleted this file from my working copy and created a new file with the same name but it is also very slow in saving. I have also created a new ascx file and pasted script of corrupted file in this new file and here this scr...

Can I open a solution without opening its documents, or clearing the user options?

I have a solution which, when opened, crashes VS2008. This has happened before and I can work around the problem by deleting the SUO file. But that clears all my other options too, in particular the set of exceptions to break on, and setting them up again is very annoying. Is there a way to open a solution without opening its document...