visual-studio-2008

How to automatically insert preprocessor and comment blocks into a new C++ header file in Visual Studio?

When I create a new C/C++ header file in Visual Studio (2005/2008), I want to have some preprocessor header includes automatically inserted into the new header file. Anybody know how to do this? The New Porject and New Item template system in Visual Studio does not seem to apply to C++ files. As an example, when I create foo.h, I want t...

Context sensitive help not working in VS 2008

This seems like a petty question, but this situation is starting to get annoying: When I'm working in VS 2008 and I want to get context-sensitive help, I highlight the term/keyword/window that I want help on, and I push F1. It brings up the MSDN help window, but it always gives me a "Page not Found"/broken link on the start, and I have...

What is the "preferred" method of creating mock objects for use with Visual Studio unit testing?

I am aware of Castle's DynamicProxy and RhinoMocks, but I was wondering if, given the fact that Microsoft has introduced unit testing as a first class feature of Visual Studio, whether they have provided any standardized object mocking mechanism to accompany it? ...

Are there reasons to use Visual Studio 2005 when 2008 is available?

What reasons are there for continuing to run Visual Studio 2005 when 2008 is available? I work on a project where the environment is dictated to be Visual Studio 2005. Are there good technical reasons for this? Can I use Visual Studio 2008 and build an app that is 100% indistinguishable from the same app build with Visual Studio 200...

Where can I get great documentation about Exception handling in C#

Hi guys, I'm searching for a good website or a books that give great example of Exception Handling in C# 2008 such as SQL exception management and all the other. I'm programming in 3 tiers. I'm already doing it well in VB .Net 2008 and I'm now moving foward to C#. The transition isn't hard, but I need a bit more information about excep...

VS2008 ASP.NET Website vs. Web Application

Hello, In Visual Studio 2008 ASP.NET in C#, what are the pros and cons of starting with an ASP.NET Web Site vs an ASP.NET Web Application? Which was introduced first? Is one approach the "more modern" approach? In what situations would you use one versus the other? Thanks! Adam ...

Outlook 2007 MailItem Info - slow

I'm trying to parse through e-mails in Outlook 2007. I need to streamline it as fast as possible and seem to be having some trouble. Basically it's: foreach( Folder fld in outllookApp.Session.Folders ) { foreach( MailItem mailItem in fld ) { string body = mailItem.Body; } } and for 5000 e-mails, this takes over...

Setting up OpenGL with C++ and Visual Studio 2008

Hey I was wondering if there are any good tutorial out there on how to set this up? I have seen the NeHe tutorials from gamedev.net but some of them seem to be out dated... any clues? thanks ...

Upgrading to VS 2008 Professional from Web Developer Edition

I currently have VS 2008 Web Developer SP1 installed on my machine and I've purchased the professional edition. I also have 2003 and 2005 Pro installed. Should I un-install VS 2008 Web Developer before installing the professional edition? If not, will I have two version of VS 2008 or will Professional "Upgrade" Web Developer. Please ...

How to get out of subversion source control in visual studio?

I have a solution that is source controlled with Subversion and AnkhSVN in Visual Studio 2008, but I would like to remove source control from it, how do I do that? ...

How to map a Collection<T> in NHibernate?

I have a class Contact (base class),a class called Customer and a class called Supplier. Customer and supplier class both derive from Contact. Customer has a 0..n relation with Order. I want to have a Collection property on customer and have it mapped in NHibernate to its corresponding table. How is this done in NHibernate (version 2....

Usercontrol display error in C# Designer

I've created a usercontrol in the C# (ASP.NET) designer. It works fine (when I compile / run) and doesn't kick out any errors. I'm using it in a GridView, if that makes a difference. Sometimes, when I'm in the designer (for the page, not the control) it gives me a red box and tells me it can't display the user control. Switching to sour...

Integrate Silverlight Unit Testing with Visual Studio 2008 Test Results Panel?

I would like to run my Silverlight Unit Tests from Visual Studio instead of opening a new instance of my Silverlight Test App in the browser. Apparently it is possible (http://www.jeff.wilcox.name/2008/09/rc0-new-test-features/ - search for "Visual Studio Team Test log provider output")....but I don't understand how you enable this, doe...

How can I load an image saved in database to Visual Studio ReportViewer 2008?

Hi!! Does anyone know how can I get ai image saved in database and show it on ReportViewer 2008? Thanks!! ...

How to deploy sample source, with reference assemblies correctly?

Hi There, I'm developing a .NET class library, along with some sample sources. So, My solutions consists of the library, the sample VB to illustrate the library, and a setup project to deploy it all. The sample has a project dependency on the class library, and the setup project is configured to deploy the Class library (i.e. the output...

ClickOnce Deployment for a C++/CLI Project using Visual Studio 2008

How do I publish a C++/CLI Windows Forms project for ClickOnce deployment? The properties window for C++/CLI projects does not include a "Publish" tab (like in the C# projects). ...

ReSharper 4.5 took away all intellisense for VS 2008!

I just recently purchased ReSharper 4.5 to use with Visual Studio 2008. Upon installing it, I have noticed that there is no intellisense at all! There is no ReSharper intellisense, no VS intellisense, nothing). Any ideas? Thanks! ...

C# 3.5 ASP.net File IO issue, UnauthorizedAccessException to file on network share

I get an UnauthorizedAccessException everytime I try to access (just read) a file on a network share "\\server\folder1\folder2\file.pdf." I am impersonating the domain\aspnet user which has read & write access to the above mentioned folders. The file is not read-only. I tried finding the permissions via System.Security.Permissions.F...

Visual Studio 2008 - Settings: Synchronize button. - No user.config files were found...

It isn't really causing a problem but it is annoying me... Does anyone know how to refresh the locations for your user config in Visual Studio? When I click synchronize in the Project Properties --> Settings. I get the error message: No user.config files were found in any of the following locations. Those paths no longer exist so I...

Webresource.axd? - 500 internal server error

Hi All, im trying to use a file upload control from the obout control library, i really like it, and think its quite slick without any flash!.. i downloaded the entire installer, played with the settings in the samples, and made the control act exactly as i wanted. i created a brand new web application ins vs2008, and included the web...