visual-studio

Adding projects to a visual studio c++ solution via a script.

I usually work on multi-project solutions in visual studio. Since the solutions themselves are not stored in the repository, I spend some time adding in the various projects via visual studio(from a list which is part of the 'parent' project). I am wondering if I can acommplish this via a script. ie: 1. create a solution. 2 add project...

Search a variable after its value in debug mode, is it possible ?

Hi , I am dealing with code legacy and in UI i can find some id's of my objects which are used at run time. Those id's could help me to find more quickly the portion of code with which i am dealing for that requirement,but i do not know if it is possible to do in debug mode from Visual Studio 2010 (C++ and C#) a search after a value...

Which parts of the Visual Studio IDE are open source?

Which parts of the Visual Studio IDE (if any) are open source? Thanks! ...

How to Create a Enitity Framework Project?

OK, so I feel dumb for asking this... but I am stumped. I can't seem to create a project/unit for using the ADO.NET Entity Framework. I looked for a project type that looked like it would match, but no go (closest I could find was ASP.NET Dynamic Data Entities Web Application). I also tried to just add a unit (like you do for Linq-to...

What is the appname.vchost.exe file.

Hi everyone, Every time I build my .NET application with Visual Studio, I got a appname.vchost.exe file along with my appname.exe file. This file doesn't exist when I build with command line commands. So, What is this *.vchost.exe file for? Could someone explain its working mechanism in detail? Thanks. ...

Searching for text in an Object watch window in visual studio

Hi, I am using visual studio 2010. I have set a breakpoint and added a watch on a complex object with very deep hierarchy. I was wondering if there was any quick way to search this object tree for a particular string I want. Either as a property/value/method etc. In other words, I just want to say "Does this object have anything like "F...

Use Visual Studio web.config transform for debugging

Hello, I want to use the web.config transformation that works fine for publish also for debugging. When i publish a web app, visual studio automatically transforms the web.config based on my currenc build configuration. How can i tell visual studio to do the same when i start debugging. On debug start it simply uses the default web.conf...

Is it possible to make ClickOnce installer download Access Database Engine ?

I'm developing an app that uses this as a database Provider. My connection string starts with "Provider=Microsoft.ACE.OLEDB.12.0;". I doubt the customer will have it installed so I can either tell him to download it (which I prefer to avoid) or make my installer download it for him. So I'm wondering if there is a way to make a ClickOnce ...

IE 8 crashes instead of opening debug dialog on encountering "_asm int 3;" in the dll code

I wanted to set breakpoint in the dll code so I introduced the statement "_asm int 3;". IE is supposed to open a dialog box saying that an unexpected exception has occured, and whether to close or debug. But it simply cuts down the window. The dll is a _Debug version not _Release version. Another thing I noticed is that using the "debug...

Which Visual C++ file types should be committed to version control?

Which Visual Studio \ Visual C++ file types should be committed to version control? In my project I have the following file types: aps cpp exe filters h ico idb ipch lastbuildstate lib log manifest obj pch pdb rc rc2 res sdf sln tlog txt user vcxproj I would greatly appreciate a short reasoning for each. If any of them are controversi...

How to use Setup variables in Descriptions?

I have a setup project in VS 2005. In the UI section I put some texboxes with some variables, that the user should fill-in when installing the application. How can I use this [VARIABLES] in the fields like shourtcuts descriptions? ...

Is there an equivalent of DoEvents in Visual Studio macros?

Title says it all, I've got a long-running macro, in which I write periodic messages to Output just so that the user know somethings happening. The problem is that the output doesn't get shown until the macro has finished (unless you have the Continue Waiting? dialog box open, strangely enough). Is there anyway to 'flush' the event queu...

create a windows logger

hi i want to create an application that logs these items: windows turn on, turn off time log in, log out time hibernate time restart time in windows 7 'Admin event viewer' log most of above item but in windows xp there is not a clear log. in addition, the user can change event setting how i can do this with fully trust. Thank yo...

Visual Studio Fonts and Colors - Ref Keyword

I just imported new fonts and colors for Visual Studio 2008. I want to change the color on the ref keyword on a parameter to stand out a little more. Anyone know what option that is in the Display Items under Fonts and Colors? ...

Reformat XML in Visual Studio 2010

Is there an easy way to reformat an XML file while viewing it Visual Studio 2010. For example, if you open a generated app.config file, it might look like: <?xml version="1.0"?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> This is difficult to read, is there a w...

Refactor properties into field

If I have a field, I can generate a corresponding property by right clicking on the field -> Refactor -> Encapsulate Field. Is there a way to acheieve the opposite? I have properties like public int Foo {get; set;} I want to generate private fields and change the getter and setter to use the field. Then I can implement INotifyProper...

cvblob compile error in Visual C++ 6.0

Hi all! I'm using Microsoft Visual C++ 6.0 and Microsoft Visual Studio 2008 to develop an academic computer vision project. In this project i need to use OpenCV 1.1 (http://opencv.willowgarage.com/) and CvBlob (http://code.google.com/p/cvblob/). I tried to compile this project with Microsoft Visual Studio 2008 and it compiles without...

Is there any predefined macro like _MSC_BUILD(supported from vs2008) in visual studio 2005?

I hope for using any predefined macro like _MSC_BUILD (from vs2008) because I want to use revision number of compiler. but i can't find that in vs2005. thank you for your help. ...

What is the best way of deploying VS project/item templates?

I made an installer fro project/item templates in VS2010 to put the templates in the user's Templates folder. Is this an OK way of doing things? Or is there a way to deploy templates for all users? If so - where should I put them? Thanks. ...

Visual Studio 2008 resx files editor

Hi I need to make some translations of external application forms (I try to add a new language support). I have only form's resx files. Can you recommend any simple tool which allows me to translate form's texts (only texts if it's possible)? ...