visual-studio

Visual Studio 2008 Scans Web Project When Closing - Why?

At first, I though my VS2008 Pro SP1 (on XP Pro + SP3) was hanging when I would close a web project on a remote server, but after checking it out with netmon, I can see it is accessing the site a bunch of times (it's a Classic ASP site with a couple hundred ASP pages). I then checked out the IIS 6 logs on the site and it's POSTing to ...

c++ - most simple type of graphic application in visual studio

hello! Whats the most simple way (without much fancy stuff and no big setup overhead) to create a c++ project with visual studio where i can create some graphical debug output? (mainly drawing some lines, circles and triangles in a window. doesn't have to be performant or look pretty) thanks! ...

Automatic library selection

Hi, I noticed that when linking boost libraries in VS2010, I only need to specify the linking directory, and the compiler automatically selects the right libary to link. How can I do the same with my libraries? ...

How to build/deploy project that requires multiple versions of the same assembly?

I am working on a project that uses conflict.dll version 6.2, but the project also uses helper.dll that uses conflict.dll version 5.8. I could install 6.2 and 5.8 into the GAC, but I'ld like to have this project xcopy deployable. I believe .net will search for the assemblies in the application bin directory like so: \bin\conflict.dll (6...

How to get Debug.WriteLine to work with other processes?

I've got a program that spawns two other proccesses using System.Diagnostics.Process. Their output is captured by the first program: players[p.Key].StartInfo = new ProcessStartInfo { FileName = args[i], RedirectStandardInput = true, RedirectStandardOutput = true, ...

Visual studio assembly references

Is there anyway to localise an external assembly reference? Here's my situation: I am working on Project A and it contains assembly references from Project B. Now when I release this Project to my client I don't want to have to include the whole of Project B with it. Is there anyway to force it to copy the dll's from Project B onto Proj...

Difficulty with Adding a Reference in Visual Studio (Windows Azure StorageClient)

I've been following alone with this tutorial. Everything is going great, until I get to this part: Set a reference to the StorageClient library. You can either add the sample project to the solution and add a project reference or you can add a reference to the compiled dll. I am going to add the StorageClient project to...

Searching a boolean column in LightSwitch App

The default search box in a LightSwitch screen is very neat - all set up for you and it searches almost everything. But is there a way to filter the result set on a boolean column? Or more than one boolean column? Is there an advanced search syntax, or is it just a super simple search for strings? Maybe I missed something in the docu...

Why is System.Web.Mvc not listead in Add References?

Using C#, Visual Studio 2010. There is a namespace called System.Web.Mvc documented on MSDN. The documentation for all the types in that namespace says that they are in System.Web.Mvc.dll. However, when I go to Add Reference, “.NET” tab, this assembly is missing from the list. Why? ...

Making a .NET library in Visual Studio

I am building a library in Visual Studio, and I have decided on my namespace structure as CompanyName.Type.Action e.g. MyCompany.Common.DataFile. In Visual Studio I accomplish this by creating a new solution with name MyCompany.Common and then adding to the MyCompany.Common project the class DataFile. First of all, this leads to the so...

Qt, CMake, Visual Studio and Q_OBJECT in cpp files

Hi, I'm developing a large project using Qt 4.6, CMake 2.8 and Visual Studio 2008 for the Windows platform. As far the build system goes, it's all standard stuff: I'm using CMake's QT4_WRAP_CPP macro to generate moc files from header files, which are then linked into the final executable in the add_executable command. Everything is wor...

Property that can rearrange components when I am changing size of windows applications

Are there any property of a form or a component by which components of windows applications created using Visual Studio will be arranged automatically when I changed the windows size or maximized - restored the window? If not, How can I do it manually? ...

Rename dynamic library dependency without recompilation

I have a project that generates a dynamic library "my_library". It depends on an other dynamic library : foo.dll (the library itself) and foo.lib (for compilation). I would like to rename foo into foo2 (you guessed right : it's just an example :) ). I know i can rename foo.lib and foo.dll into foo2.lib and foo2.dll and simply recompile...

Why not running Microsoft.Office.Interop.Outlook in asp.net?

I wrote some code about sending mail, Task, Appoinment etc. For example you can add someone to your outlook contact list over asp.net page. Every thing is ok on my local machine. But if I publish my application to a server I can not add noone on my outlook. Please help me it is important. ...

Build Visual Studio 6 project with Visual Studio 2010

I am trying to build a project created in VS 6 with VS 2010. When I open .dsw file, VS converts the project asking me this message: "... ProjectName.dsp must be converted to the current Visual C++ project format. After it has been converted, you will not be able to edit this project in previous versions of Visual Studio. Convert and op...

Visual Studio 2008 HTML auto-formatter

Visual Studio 2008 "auto-formats" any block line elements such as div, h1, etc. using a line break after the opening tag. This has always bothered me when it comes to h1, h2 etc. I pretty much always have them on a single line. Is there any way to configure Visual Studio to keep these on one line? I.e. this is what it does <h1> Th...

Debug com visible dll managed code

Hi, I have written a COM visible dll, which will be called from a native Win32 program. For debugging purposes I added a simple WinForms client to the solution containing the dll. Now when I set a breakpoint in the dll, that breakpoint is hit, but I can't step through the code: the debugger always jumps to the next breakpoint in the dl...

Knowing the current Revision of a file or the project/solution for AnkhSVN

How can I view the current revision number of a particular file from Visual Studio or directly from Explorer under SVN Source control? I am using AnkhSVN as the client. Also, is it possible to know the revision number when the project/solution was last updated from server and changes to some of its files have been made thereafter? ...

how to pass/transfer out parameter as reflection? - visual studio extensibility c#

I have an out parameter. Is it possible to transfer it as reflection? Can you give me some examples how to do that? ...

Getting the return value of a method via DTE.Debugger without evaluating the method?

I'm looking for a way to get the return value of a method via the Visual Studio Debugger (using DTE). Is it possible to obtain it if I'm at the closing brace of the method, but not yet exited? Also, it would be best if this could be possible without evaluating the function again via the immediate window. ...