visual-studio

compile c code in vs 2005

Is there an easy way to compile c code in visual studio 2005? Its been a while(2-3 years) since I've done any coding in either c or c++, but I remember that you used to be able ti, in vs 2003, compile c code in visual studio. I thought it was just a matter of using an empty project(rather than, say a c++ project or a C# project) and gi...

Failed to remove package protection with error 0x80131940

Hi, I'm trying to open a password protected package in SQL Server BID and I keep getting the following error message each time I pu in the correct password: Failed to remove package protection with error 0x80131940 "(null)", This occurs in the CPaqckage::LoadFromXML method. Any Ideas? ...

How can I get the VS add-in to write to the Output window?

I want to get my add-in to write to the Output window in Visual Studio. How can I do it? Found the answer here: http://www.knowdotnet.com/articles/outputwindow.html – Dmitri Nesteruk ...

Attach to IIS7 with a macro?

I used a handy macro with keybindings in Visual Studio to attach to Windows XP IIS 5.1: Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Imports System.IO Public Module AttachDebugger ' This subroutine attaches to the first IIS Web Server found. Public Sub AttachToFirstIISWebServer() ...

How do I set a path in visual studio?

How do I set a path for dll's to be searched in Visual Studio for a particular project alone. Now I am setting it in environment path variable, but I would like better control over this. ...

Slow "Find All References" in Visual Studio

I have a VS solution that contains 6 library projects and 1 web folder project. When I try to use the "Find All References" feature on an object or method, it takes more than 6 minutes to finish ! It seems to be refactoring every aspx & ascx file of the web project. Any idea on how to make it faster ? ...

Managing complex Web.Config files between deployment environments.

Does anyone know of any good tools/utilities for managing Web.Config files between different build/deployment environments? For example, I have a WCF project that in development I don't want to enable SSL, but I do want it enabled in production. I want different logging settings, different DB connection strings, different error handlin...

Possible to expose CONSTANTS defined in webservice to consuming client (.Net both sides)

I have several constant defined for a webservice, and I would like to make these available to consuming client. Both the server and client are .Net. I think it is possible to achieve this by using enum's, but many of my constants are text string with spaces, so I would have to write an extra function to convert the enum into the equiva...

Visual Studio shortcut for showing dropdown of available Enum values for function argument

When calling an overloaded argument in visual studio, visual studio often doesn't show the dropdown of available enumerated values available for a function argument. Is there a shortcut one can use the force the dropdown to be displayed, so one doesn't have to type the fully qualified path to the enum declaration? ...

How do I create a workspace window for other windows using c# in visual studio 2008?

I'd like to create a workspace with status bar and menu, and within this workspace container have smaller windows of various types. For example, if you un-maximise a worksheet in Excel but not the main window, it becomes a window in a larger workspace. I've tried searching for the result but the main problem is in knowing the right te...

How to get rid of validation warnings

The complete warning is Validation (): Element 'html' occurs too few times This is for a JSON view, which you might guess returns a JSON result and hence no html. ...

"Open in visual studio" link in an ASP.net exception default page

When my ASP.NET application crashes (when it shows the default exception page), I'd like to be able to click on a line of the call stack in the browser and Visual Studio would open the code file at the given line. Do you think it's possible ? Maybe with a macro/add-in ? ...

How can I add two projects. Visual Studio 2008

I just created a project so my Solution Explorer looks like this: But I want to add another project which is related to this project but it's going to be a class library and it's going to output a DLL that I could use in any other project. So how can I create a "solution" with multiple projects? ...

Opening .sln files in Windows Vista

Hi, This one seems to be quite ridiculous but how can I open a VS solution file in Windows Vista double-clicking on it? Every time I do I got a strange error that the file doesn't exist. I'm pretty sure this is a Vista configuration but I couldn't find any relevant information. It's really annoying having to open the VS IDE every time...

MFC vs. CLR?

In a visual studio C++ project, would MFC be faster than using the CLR? I'd specificily be using 2008. Oh and the reason I ask is because I have experience with .NET but not so much with MFC. I understand what MFC is but have never really used it much. ...

is it possible to make nant run a publish on web application project

is it possible to make nant run a publish on mvc project or a good old web application project and after the publish make nant FTP the files to the web server UPDATE: found the solution to the ftp problem Nant ftp task thanks Paco what i mean by publich is there a command line application or nant task that can public like visual studio...

Updating a class after changing its Interface

Hi, Say I add a function to an outstanding Interface. In Visual Studio, within a class which implements it I can right click the Interface declaration and re-implement it. This will update the code to reflect the changes made. Is there anyway to do the same thing in eclipse? It'd be nice if there was. I've searched the net, alas no joy....

Visual Studio Text Box Wrap Function

How can I make my text wrap automatically to the next line when I am writing text in a textbox rather than keeps on typing in one line? ...

Best practices if your Build is taking too long in Visual Studio

I have moderate size solution in Visual Studio which takes around 5 minutes to build (It take that long because of FxCop and other post build steps). My problem is, Visual Studio stops responding while it's building. You can't continue working as VS almost hangs. I tried using two VS instances, just using one for build, but it keeps cras...

Including a VB project within a VC++ project

I'm looking for some help with a dependency issue. In a nutshell, I've included a makefile project within a larger VC++ workspace, but the sub-project always rebuilds, even when it's not necessary. The Details I've inherited a large project that consists of several different modules, including a (primary) Visual C++ 6.0 executable and...