visual-studio

Can I Attach to Process without it being already running?

Using Visual Studio 2005's Attach to Process, is it possible to select an application to run and then debug as opposed to an application that is already running? I am trying to debug a FileMaker Plugin and I can debug it fine if I open FileMaker then use attach to process, but I now want to debug the initialisation of the plugin so need...

Compiler error when adding an object to a vector

Why do I get the following compiler error when adding an object to a vector, which its data member is referencing another object? The compiler error: Error 1 error C2582: 'operator =' function is unavailable in 'Product' c:\program files\microsoft visual studio 8\vc\include\xutility 2726 In the program I collect all data before I crea...

You have insufficient permissions to create the database project

I am running Vista and I am not using Admin user. I tried with an Admin username too, but it did not work. Any ideas? ...

What edition of Visual Studio 2008 for commercial projects

Hello, Friend of mine just established own coding company. They wanted create professional application written in .NET. Now he on the stage buying software. We have discussed what VS version is absolutely minimum for this purposes. There are lot of different version Professional / Team Suite / Team Developer ... I wonder what you re...

Visual Studio: Help to fix circular reference!

Hello Is there a way in Visual Studio 2005 to find all the references of a project? I have a solution with multiple projects (dll's). When referencing in the project B the project A VS tells me that it can't add this reference, because of a "circular referencing". However, the project A does not contain a direct reference to B. Appare...

Revert changes to UI in Visual Studio

I pressed a key that shows formatting in the IDE; I'd like to change it back to what it was before. How do I do that? ...

Is it possible to reuse a ProjectInstaller?

I have a solution with many Windows services and their ProjectInstallers are very similar. How to make a single Installer class in a library that is used by every WindowsService? I tried to do it, but it didn't work yet. The code below contains only part of a Installer [RunInstaller(true)] public partial class ProjectInstaller : Insta...

With T4 templates, does it give you the database as an object where you can spit out code?

With T4 templates, does it give you the database as an object where you can spit out code? or do you need that tool visualt4? ...

#import command line equivalent

Using Visual Studio with Microsoft's C++ compiler, we have several source files which use the Microsoft-specific '#import' directive to import a type library. For instance: #import my_type_lib.tlb I'd like to remove the #import from the source code, and replace it with a command line step to be executed via GNU Make. The necessary i...

Add an XML schema to Visual Studio

I want Intellisense support when writing App.config sections or XML configuration files for components like NHibernate, log4net, or Unity. What options do I have to get Visual Studio to find these files and load Intellisense? (Assume we have the schema file.) ...

Having Issue with Azure Cloud Service Web Role that points to SQL Azure

I'm having a weird problem with my web application when it is hosted on Azure. Basically the issue is that I have one page that goes to the database and when my application's connection string points to my SQL Azure DB, I get a blank response for that particular page (By blank I mean when you view source you see absolutely nothing). Wh...

How to implement dependency checking for C/C++ sources

I started adding support for a 3rd party toolchain (IAR Compiler) to Visual Studio 2005. So far I've managed to implement the required msbuild tasks (Compile, Link and Assemble) and the Visual Studio Add-in to support the *.proj file. The next hurdle is handling dependencies for the headers. I'm not sure what the best way to go about t...

Is there a way in VS2008 to search through a watch or a quickwatch for a particular value?

Hi Guys Suppose I am watching something in VS2008 and I want to search the object I'm watching for an instance of a particular value. For example, say I'm watching this and I want to search for a control called mycontrol inside it or I want to search for a string that currently has the value of "Hello World". I know it's kind of a bru...

Playing sounds in Visual C#

I want to add sound effects to my Visual C# program. What's the simplest way to do this? ...

How to undo "Create directory for solution" in Visual Studio

I have a c# project wrapped in a solution. When I created the project I wrongly ticked the "Create directory for solution" check-box. I would now like to relocate the .sln file to the same folder as the project. Problem is, if I just move it in (and change the project path inside with a text editor) I get all sorts of build errors when o...

Is there a planned StyleCop release for VS 2010 ?

Does anyone know when stylecop will be released to integrate into VS2010. I know you can tweak the config files to integrate it at the moment, but it is not possible to view the UI. ...

Creating a Wizard for Plugin project development

My DotNET application allows for plug-in dlls by 3rd party developers. I'd like to facilitate the process of making these plug-ins by offering a set of tools that create empty projects and new standard classes. Essentially, I need to create a typical ClassLibrary project with a bunch of dll references and some PostBuild Events. Also, it ...

Creating & using an MFC static library

Is it possible to create an MFC static library (.lib) and link it to a non-MFC C++ application? If so, does anyone know how to create an MFC static library? Visual Studio doesn't seem to have any templates like that. ...

Visual Studio 2008 C++ debugger drops out of single-step mode under Vista

I have a fairly large C++ project, and am trying to use the debugger to step through some code. Unfortunately, it sometimes decides to drop out of that mode, and just execute the code without paying attention to the fact that I pressed F10, and not breaking at subsequent breakpoints. I don't know when it's going to drop out, but it see...

What is the .NET equivalent of java's System.getProperty("user.dir") ?

I am trying to get the full path of a file in my unit test which is in a folder in my project. i tried using Directory.GetCurrentDirectory(); but that returns the directory which my tests are running in. I want the directory of the project (or solution) without having to hard-code it in there. Then I can append the last part of the f...