visual-studio

How to switch on the "auto-build" option in VS2008

What option (where it is located in VS2008 menu) is need to be switched on in order VS2008 compile and build solution before launch (native C++ project)? Thanks. ...

In Silverlight, how to bind ListBox item selection to a Navigate event?

I am writing a windows-phone 7 application. I've got a page with a list of TextBlock(s) contained in a ListBox. The behavior I want is that upon clicking one of those TextBlock(s) the page is redirected to a different one, passing the Text of that TextBlock as an argument. This is the xaml code: (here I am binding to a collection of st...

C code compiles as C++, but not as C

Possible Duplicate: Convert some code from C++ to C I've got some code that appears to be straight C. When I tell the compiler (I'm using Visual Studio 2008 Express) to compile it as c++, it compiles and links fine. When I try to compile it as C, though, it throws this error: 1>InpoutTest.obj : error LNK2019: unresolved exter...

Visual Studio - Debug vs Release

I built a windows service, targeted for .NET 2.0 in VS 2008. I run it as a console app to debug it. Console app is working great. I put it on my local computer as a service, compiled in debug mode, still working great. I'm ready to release now, and suddenly, when I set it to release mode, the service compiles and installs, but nothing ...

MSBuildExtensionsPath32 not set correctly?

For the life of me, I cannot find where this value is actually set. It SHOULD be pointing at C:\Program Files\MSBuild, but on our build box, it's pointing at C:. How can I change this? Thanks. ...

Crystal Reports - PrintToPrinter "The handle is invalid"

I'm using the Crystal Reports Basic for Visual Studio 2008 to print reports. I have just one user that gets periodic errors saying "The handle is invalid". If she tries printing a second time, it works just fine. I've looked over her machine and it looks like it has all the same software as everyone else, and of course it never happens w...

Where can I see printf output in an mfc applcation?

Where can I see printf output in an mfc application during debugging? Is there a "console" window I can view in the debugger? (Visual Studio C++ 6.0) Thanks. ...

How can I automate checking the menus for integrity in a C++ app?

In my C++ solution there are two projects : a SDI app and a MDI app. Both have quite a lot of menus, and I often make changes (add / delete / replace menus). Instead of checking for correctness myself (I'm error-prone, you know), I would love to have an automation for this. Ideally it would warn me for either not having a handler for s...

Why is an XSD element of type s:date becoming a string when generating a Service Reference?

I'm trying to create a new Service Reference from a WSDL and all of the properties I expect to be DateTimes are instead strings. For example, this xsd definition for Contact: <s:complexType name="Contact"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="Address" type="tns:Address" /> <s:element minOccurs="...

Report error/warning if missing files in project/solution in Visual Studio

Hello, Is there a way for Visual Studio to report an error/warning when you build a solution that has missing files (yellow triangle icon with exclamation) that do have necessarily cause a compile error? Like a missing config file that is read during run-time. Thanks ...

deepcopy in IronPython Microsoft Visual Studio 2008

I want to do a deepcopy in IronPython Microsoft Visual Studio 2008, but I get error: IronPython.Runtime.Exceptions.PythonImportErrorException was unhandled by user code Message="No module named copy" Source="IronPython" StackTrace: at IronPython.Modules.Builtin.__import__(ICallerContext context, String name, Object globals,...

How to create Setup with Input Information

Hello, can anyone tell me how to make Setup Project for CLR, which will take Connection String Parameters. I want my Clr to run under any SQL server, can anyone advice how to pass parameters to Setup project and how to make my clr get where to connect. Or is there any other way to deploy CLR dll without source to another Server? ...

TFS work item alternatives

Hi, i would like change my tools to open source. Curently im using TFS work item, is there any open source alternative for Microsoft TFS Work item manager which eaisly integrate with Visual Studio? thanks for any suggesting. ...

import a "published" website into visual studio as a solution

We have a website which is already deployed in the production server. We need to remodify the application and then re-deploy it. But we do not have access to the code-behind files as everything is compiled into a dll. ...

How to set PlatformToolset from custom property sheet in Visual Studio 2010

I am moving now from VS 2005 to VS 2010 with products consisting of few solutions with numerous projects each. I wanted to make use of the property sheets system so our numerous configurations would be easier to maintain. One of the issues is that we want to use Windows SDK 7.1 (as we need BaseClasses sample - and if we have to use that...

In a Winforms Chart, how to change the drawing parameters for a Point according to its underlying data?

I am using the .NET Windows Forms Microsoft Chart Component. My data objects would look like more evolved versions of the following class: class DataObject { public double ValueX {get;} public double ValueY {get;} public boolean IsRed {get;} } I have been able to bind my chart to my data by setting the Chart.dataSource p...

Why create a folder in your project to hold dlls you're referencing anyway?

I'm working through installing the N2 content management framework in an ASP.NET website project. The instructions at http://n2cms.com/Documentation/Content-enabling%20an%20existing%20site/The%20first%20content%20class.aspx recommend I create a lib folder to hold the required dlls. The very next step asks me to reference those same dlls...

Visual Studio Free addin or resharper plugin to show constant value in tooltip

Is there a free addin or resharper plugin that will let me see the actual value of a constant value when you hover over a reference to it ? Since the compiler forces const fields or properties to be a concrete compile-time constant, it is only logical that it show it straight in the tooltip. eg: const int DISPLAY_MODE_SIMPLE = 0x...

Env vars for Visual Studio command prompt

I'm doing an RDP into a machine that has just the CLR installed, and doesn't have Visual Studio on it. Can I somehow load all the Visual Studio-specific environment variables on to the regular command prompt and convert it into the VS command prompt so that I'm able to build my projects via command line? I looked at the vcvarsall.bat fi...

Is there a Visual studio plugin for visualizing red-green time for a TDD session ?

I read a post by Joshua Kerievsky about 'Limited Red Time' Link His org. Industrial Logic as part of a training module, has a screen where you upload an archive. In return, the screen shows you a graph of how much time were you in the red state vs the green state. It also hooks up with Resharper and annotates points at which the specif...