visual-studio

In Visual Studio 2010, is there a way to keep recently-used files from falling off the File Tab Channel?

In Visual Studio 2008 you could use Sara Ford's did you know #331 (Did you know… You can keep recently-used files from falling off the File Tab Channel? - #331) to make the tabs ordered in MRU (most recently used) order (i.e. the current window is always the left most tab, the previously visited window is second tab, and so forth). The ...

Are circular references ever necessary?

I've inherited a Visual Studio Solution that contains numerous circular references between Projects. Is there ever a situation where this is remotely acceptable? Just trying to confirm my suspicion that this application is designed horribly. Thanks in advance. ...

Unbale to identity WinForm ListView subitems in Coded UI test VSTS 2010

This is my window application code for listview :- // Create three items and three sets of subitems for each item. ListViewItem item1 = new ListViewItem("item1", 0); item1.SubItems.Add("1"); item1.SubItems.Add("2"); item1.SubItems.Add("3"); ListViewItem item2 = new ListViewItem("item2", 1); ...

Visual Studio Linking errors. MFC, CRT order?

This questiod had been brought up numerous times, but Visual Studio never gives up to challange me. We have an application that should be self sufficient, i.e not depend on any dlls. This is why we build everything statically with MT(d) code generation flags. The app depends on Qt, zlib, OpenSSL and DCMTK. All of them were built as sta...

How to create overloading functions in Visual-C++ library (.net) ?

So what I want is to create 3 functions with same names but taking difrent arguments (one will take 2 and others one lats say System::String). (I will compile tham into .net library from visual-C++, create a c# project, connect my lib to it and want to be able to see in my library one function name which would have 3 overloads.) How to ...

Cancel VS2010 project creation from wizard

Hi I created a wizard for a custom template in VS2010 And it works like a charm. But since the wizard contains a form required to finish the creation of the project, i feel that the user should be able to cancel the creation of the project. So my question being.. Is it possible to cancel the creation of a project/template process fro...

Transitioning from VS2010 to Eclipse IDE for Android/Java dev

Hi, I wonder if someone can help me... I've been developing VB.Net for years and C++/VB before that. I've also got some PHP experience. I'm now moving to Java to write an app for my Android mobile. I'm trying to use MOTODev Studio (Which extends eclipse) I've not developed in Java before so it's a bit of a learning curve anyway. I'm fa...

CL.exe exit codes

Anyone know where I can get a list of CL.exe exit codes and what they mean? Google is not my friend on this and the particular code I'm getting (4) also doesn't seem to get any hits. Although the meaning to code 4 would be nice, I'd prefer a site that actually lists them all. ...

Which editions of Visual Studio actually include a profiler for C++?

I'm really confused by all the ambiguity from all the sources I've been looking at. Can anyone give a clear answer to which editions of Visual Studio that actually includes a profiler for native C++ applications? Thanks ...

How to build a C# project without checking dependencies?

Given a Solution where: Project P1 has a reference to P2 P2 has a reference to P3 P3 has reference to P4 When you call msbuild this way: msbuild.exe /v:m "c:\mysolution\p1\p1.csproj" msbuild checks all project dependencies is builds dependencies if necessary. The typical output is: Microsoft (R) Build Engine Version 4.0.30319.1 ...

Debug a referenced DLL in a separate solution

I have a web project, A, that references a DLL, B, that I would like to debug. I have the DLL source code in a separate solution. Is it possible to step into the dll code without adding the dll project to my A solution? Thanks! FGA ...

VS project fails to compile: Property not a member of a referenced DLL

When I try to compile my VB.NET web project, I get an error that reads: [PropertyName] is not a member of '[Namespace.Class]' The class referenced is part of a dll that the project references. The property definitely exists in the referenced class, and its access modifier is Public. What's more, if I update the reference, or just rem...

Xaml 2009 support in Visual Studio

When are WPF and Silverlight going to support Xaml 2009 in Visual Studio? ...

Parameter Date Conversion

am using C#, VS 2005 and SQL 2000 I have date conversion problem my SQL table having field as below Fields: datefrom dateto My SQL query in C# is string sql = "insert into companymast (cname, datefrom, dateto) values(@cname, @datefrom, @dateto)"; SqlCommand cmd = new SqlCommand(sql, con); cmd.Parameters.Add("@cname",SqlDbType....

Asp.net Multiview Word Wrap Problem (Visual Studio 2010)

I am using ASP.net MULTIVIEW control, but when I enter text in one of it's VIEW the text got expanded beyond specified width i.e. 200px in Visual Studio. What I want is to wrap the text within container. Here is the code. You can simply paste it in Visual Studio to see the problem. <div style="width: 200px"> <asp:MultiView ID="MultiVi...

Visual Studio 2010 Intellisense slows down everything

Hey. I have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I'm meaning: Most other open windows become unresponsive Typing is delayed Build times increase 10-fold Saving takes forever I am sure this is an Intellisense issue; disabling it solves everything, and...

NHibernate doesnt save object and also no error is showed

Hi, I have problem with saving object to database with NHibernate. Program throws no error but record is still not in database. I am also outputting sql queries and the query is not executed. I use composite key in table "order_product". Table is child of "order". Database table: order_product order_id (PK) product_id (PK) count pric...

How to Compare two class objecy with Reflection?

i try to compare two class comp1,comp2 i used method below: ComparerCollection(array_X, array_Y); but there are errors below. Arraylist generated from Ilist. how can i do that? namespace GenericCollecitonComparer { class Program { static void Main(string[] args) { myClass comp1 = new myClass() { ID ...

Detecting compiler versions during compile time

This is both a question and a reference and I am hoping that people can build upon this so that it can be reused by people with similar questions. How can we reliably detect a particular version of a C/C++/ObjC compiler? Now I know the answer for Visual Studio and partially know the answer for Xcode. Now for the Visual Studio compiler...

Visual Studio find usages of a CSS class

Is there a way in Visual Studio to find usages of a CSS class? Right now I have to do search the entire project to find all usages. Sometimes its hard if the class is named as something generic like "title". I will get all of these search results that have nothing to do with usage of that class. ...