visual-studio

Where to set default values in a WPF C# app?

Where would I set default values that I want to use throughout a project and only define once? An example would be a default margin, or a color that I want to use in multiple places. In pure C, one way to do this would be with a "defaults.h" header file with "#define"s. ...

In Visual Studio 2008, is there an easy way to determine which dll a class is defined in?

It is easy enough to determine the namespace for a class by clicking "Go to Definition" (or by hovering) but I often need to know what dll something is defined in so I can add the appropriate reference to a different project that needs the same thing). For example, in Silverlight there are many classes in the System.Windows.Controls na...

Visual Studio: Different DLLs for configurations

I'd like to make a x86 and x64 version of my application because some of the libraries I'm using have differences for x86 and x64 (e.g. SQLite). I made a new configuration for release builds that has as target operating system "x64". Is there a way to define different DLLs for the configuration e.g. use SQLite.dll for x86 release and ...

Visual Studio: Create a Hello World app in C?

How can I create a basic C app in Visual Studio, be it 2010 Ultimate or 2008 Professional? I have searched through the project templates, and can find plenty for C++, but none for C. (I'm hoping that the compiler and debugger will be built in.) ...

Visual Studio 2010 Formatting

I have plenty of experience with Eclipse, and now I'm trying out Visual Studio 2010. I find its formatting somewhat counter-intuitive. Here are some things I'm trying to figure out: Is there a way to select all text and format/indent it properly, like SHIFT+A SHIFT+I in Eclipse? Why is it that when I type a line like if (n == 0) {, as ...

HTML controls in VisualStudio.net

What is the purpose of providing HTML controls with VS.net? Why would someone choose to use HTML controls over .net web server controls? ...

Download Visual Studio 2003 ?..

Hi I have an application developed in .NET 1.1 using Visual Studio 2003. I have to add some functionalities to it for which I need Visual Studio 2003 but unable to find it any where. I would really appreciate if any of you could redirect me to a source where I can download Visual Studio 2003 ?? Thanks sbmarya ...

How do I use LAPACK in a Visual Studio 2008 project using Armadillo

I'm trying to use an open source library http://arma.sourceforge.net for linear algebra calculations. Some of the functions in Armadillo like pinv use LAPACK. I've written a very simple piece of code to use Armadillo to calculate pinv, but it produces a runtime error. This is probably because I do not have LAPACK linker flags in the sln ...

Maya API to C++

Hi, I was reading about the Maya API to C++ and didn't quite understand the idea. Upon implementing the API, Can I create an environment, or a GUI in 3D world in Visual Studio? This question is related to my previous one about the Maya API. Question If someone could give me a good place to begin, it would be great. Thanks, Oded. ...

Visual Studio 2010 code display colour scheme - where do I find some properties?

I'm working on my own colour scheme for displaying code in visual studio. I can't find some text section name so I don't know where to change it's colour. :( Can anybody help me and tell me where do I find them, I mean what is the name of the following sections: 1)The grey one (documentation tag value and it's quote) - picture below ...

How to decide what is the .Net target

We now use VS2003 (target to .Net 1.1) and we want to upgrade to VS2008, but I wonder what should be the new .Net target? Should I leave the target as .Net 1.1 (very old, not installed on all computers) or upgrade it? If I upgrade - Is 2.0 enouth? or maybe upgrade to the latest 3.5 (our clients use Windows XP, Vista and Windows 7) What...

View .aspx page in separate design and source tabs in Visual Studio

We have three options to view any .aspx page in a tab Design Source Split How can we view Design and Source in separate tabs for a any aspx page ? Or if this is impossible!! can we use split option by Vertically splitting the Design and Source ? if later one is possible, I could stretch the view onto two monitors like here as sugge...

Asp.Net WebForms designer auto update

When we work over Asp.Net Forms (like .aspx pages), the source view gets updated automatically when we edit designer. On the other hand, disigner is not bothered about changes made at mark-up/ sources. We have to click synchronise view after every bit of change we make in source to be available in the desighner. Are there some sett...

Visual Studio 2010 (beta 2) solution in Visual Studio 2008

Is there a way to open a solution-file saved in Visual studio 2010 beta 2 in Visual studio 2008? ... or maybe a way to convert it? When i tried to open it in VS 2008 i get an error saying "The selected file is a solution file, but was created by a newer version of this application and cannot be opened." ...

Directory structure of project in visual studio 2008

When I create a visual c++ project named test,the project directory will be like this: test test Debug Debug test.ncb test.sln test.suo Why does it create two Debug directories? ...

TFS Right to left in Work Item

I create a workitem type but my problem is I can not see it's text box in RTL please help me ...

Visual Studio 2008 skipping projects when building a solution

Hi, I recently installed VS2008 in Win2k8R2 machine and opened a VS2005 project(C++). After successful conversion to VS2008, I tried building the project in Debug x64 mode. But the project is getting skipped. I tried Clean as well as Rebuild, and it is getting skipped for those as well. I'm able to build in Debug win32 mode. But I need...

How to force Visual Studio to honor the BOM at the start of a UTF-8 encoded CSS file?

Apparently, when Visual Studio 2008 (SP1) opens a CSS file, it doesn't recognize the UTF8 BOM marker as a BOM, but instead interprets it as text (first three characters show up as , but shouldn't be visible). While VS normally doesn't save the CSS files with a BOM, I'd expect the IDE to recognize and respect the BOM when it's there. ...

Questions about advanced compiler settings in visual studio Express 2008 express edition

All the information I've found regarding compiler settings is with regards to the full version of VS, which seems to be at odds with the express edition. The first point is, there is no option on the screen to say if I'm setting options for debug or release mode. Now to the questions: (1) The enable optimizations option is checked. Is ...

Visual Studio: Clean and rebuild with one macro

Hello everybody, I am trying to optimize my work with VS by creating some macros. Currently I have the following macros: Public Sub ReleaseBuild() DTE.ExecuteCommand("Build.SolutionConfigurations", "Release") DTE.ExecuteCommand("Build.RebuildSolution") End Sub Public Sub DebugBuild() DTE.ExecuteCommand("Build.SolutionConfi...