visual-studio

First Boost program

I have tried to write my first Boost program from information on the Boost libraries site. Here is the code: #include <boost/lambda/lambda.hpp> #include <iostream> #include <iterator> #include <algorithm> int main() { using namespace boost::lambda; typedef std::istream_iterator<int> in; std::for_each( in(std::cin)...

int number; number.m_value ?

Today my Visual studio couldn't help me by auto complete so I thought that the ReSharper trial period had ended .After I suspended ReSharper I see that still no auto complete. After a few changes I see still the same problem and there are some strange behavior in Visual Studio. For example I see m_value field for int. But my other Visual...

See function for symbol search in Visual Studio 2005

I'm currently editing a good sized class in C# that has a ton of properties, many of which I suspect are just local variables used by a single function. Hence I'm in a mood for some refactoring. Is there a way to customise the search results on a "Find Symbol" search to give more information, like the function where a symbol appears (an...

Problem after install CodeRush and ReFactor

I have installed CodeRush and ReFactor package but i don't see any changes on my Visual Studio 2010 ide. I check add-in and extension manager but i don't see anything belong CodeRush or ReFactor. Do i have to do some extra settings for it ? How can i understand it is installed on Visual Studio 2010 ? ...

Auto select file in solution explorer from its open tab in visual studio 2010

Normally, many files in VS2010 are opened in many tabs, while massive working on project. Many times I find myself right-clicking on tab-title and searching for "Show/Select/Scroll-to this file in solution explorer" and I can't find it. Is there way to finding, automatically-by-demand, opened file in the solution explorer? ...

Does to install both Visual C# 2010 Express, and Visual C++ 2010 Express create problems?

Are there any problems if I install two different IDEs of the Express family? ...

Creating extra type definitions at compile time

Recently I've been working with MSTest, and I noticed that the testframework generates accessor classes dynamically at compile time. How can one do this? There's an xml file in a VS2010 C# project. I'd like to make an enum out of certain data in this xml file. Can this be done? And if so, how? ...

Unexplained results with VS2008 "Get everything..." option

We've only recently begun using TFS (2008) with Visual Studio (2008). A couple of developers discovered the "Get everything when a solution or project is opened" option in VS and decided it was a good idea--and it would seem to be. However, we've been getting some curious results when opening some solutions. The solutions in question co...

SOAP error in visual studio 2005

I am trying to add a SOAP service using VS 2005 via add web reference. However when I add the reference, I get all options disabled and the following error. What am I doing wrong? The document at the url http://interface.postcodechecker.co.uk/wsdl/pccInterface.wsdl was not recognized as a known document type. The error message from eac...

VisualStudio unit test doesn't find my DLL with P/Invoke. How can I fix this?

Hello, I'm working on Windows 7 with Visual Studio 2008. I have a .NET assembly that makes calls into a native DLL with P/Invoke. I have set up a separate .NET unit test project in my Visual Studio solution that tests the assembly by making various calls into it. However, when the unit test makes a call into the assembly, and the ass...

Recover a project that was never saved

I started a new project this morning and, after putting ~3 hours of work into it, I tried to open a file from another project to get some code from it. I got a warning about discarding an unsaved object. After telling it to go ahead, I realized that it was referring to the project I had just been working on and not another file that I ha...

What does "Register for COM Interop" actually do?

What exactly does the VS project option "Register for COM interop" actually do? Because when I build my library with this option enabled I can call CreateObject on my library from VBScript. But if I build without this and then run regasm manually CreateObject fails. So I'm wondering -- what does VS2010 do that I'm not doing? ...

How do I store a custom class from within the same assembly in application settings?

I have a very simple class public class Preferences { public bool RepeatInfinite { get; set; } public int RepeatCount { get; set; } } If I put this class in another assembly it shows up in the Settings tab when you browse for the type. If I however put this class in the same assembly as the running program, I can't see it or ...

Where should a Visual Studio Add-in store its settings?

Currently I'm storing the settings for my custom addins in the registry but this seems like a kludge. I was wondering if there was an official place to store add-in settings. My preference would be to store them where Visual studio stores settings so they can be exported and imported easily. Is it possible to store add-in settings with...

How to use Entity Framework 4 against system views on SQL Azure?

I'm a newbie to Entity Framework, so I'd like to try something simple to get started on Visual Studio 2010. Suppose I start out with the following SQL statement (the View sys.databases exists in the master database on SQL Azure): SELECT name, create_date FROM sys.databases WHERE database_id > 3 So instead of using traditional ADO...

crashdump debugging with Visual Studio 2010

I am trying to get crash dump debugging working with 2010, but it keeps failing. I get this error when I try to start debugging: "Managed Minidump Debugging: The signature verification for the file 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordbi.dll' failed with the error 0x800700c1.: I'm using the simplest program I can think...

Is the Create Unit Tests function in Visual Studio worth using on an existing codebase?

In my shop, there isn't much familiarity with unit testing in general, but I'd like to get into it, at the very least, as a proof of concept. Would it be a crazy idea to simply use the Visual Studio function Create Unit Tests on my small (~500 lines) code base and show the concept that way? ...

Why would the VS2010 Debugger Hang?

This just started happening on both my work box and home. In Visual Studio 2010, I'll start a debugging session and the program will run to the first breakpoint and that's it. I can hit F10/11/5 all I want. Nothing will happen. The only way to get out is a Shift+F5. This driving me nuts! Both machines are 64 bit Windows 7. Though, t...

Automating Com DLL interop version.

So when visual studio build the interop dll it gets 4.0.0.0. The TypeLib version is 4.0 But the actuall DLL version is 4.0.1.112 Is there anyway I can get visual studio to automatically build the interop DLL to assume the actuall DLL version? Could I alternatively get the interop DLL to use the version stamp from my app. I just need...

Keyboard shortcut for Visual Studio code editor Members and Types combos

I wonder what is the keyboard shortcut for these two combo boxs and specially the right part which list all the members of current class and is very handy for navigating a large class. I tried to figure it out myself but I do not know the exact names to search for it. ...