visual-studio

How do I create auto-implemented properties in the VS class designer

I'm using the class designer in Visual Studio 2008 and when I add properties to my classes they are created with an empty setter and a getter that throws a NotImplementedException. In the properties window there's an option called "Auto-Implemented" which is always greye out. Is there a way to change the settings for this so by default n...

macro "max" requires 2 arguments, but only 1 given

template <class T> struct scalar_log_minimum { public: typedef T value_type; typedef T result_type; static result_type initial_value(){ return std::log(std::numeric_limits<result_type>::max()); } static void update(result_type& t, const value_type& x){ if ( (x>0) && (std::log(x)<t) ) t = std::log(x); } }; i got the foll...

subversion structure questions

Just moved to subversion...from visual studio. I love it already! Can someone briefly explain Repository Branches Tags Trunk Do I need to create a new repository for every project? Or a new trunk? Thanks ...

What does it mean when Visual Studio tells me my project doesn't support code?

The file 'C:\Users\luke\Work\Barbee\Tester.Net\Tester.Net\View\ReportForm.cs' does not support code parsing or generation because it is not contained within a project that supports code. ...

psexec inside visual studio

Hi there, I've been trying to get psexec to run executables on remote machines from custom build tasks in visual studio. All of these commands work from the command line but running it from an application seems to be a problem. Some commands work, on other psexec hangs and consequently so do msbuild and visual studio 2005. I'm calling S...

Is there a regular expression to find two different words in a sentence?

Is there a regular expression to find two different words in a sentence? Extra credit for an expression that works in MS Visual Studio 2008 :) For example: reg_ex_match(A, B, "A sentence with A and B") = true reg_ex_match(C, D, "A sentence with A and B") = false See also this related question ...

Organizing classes into namespace in the App_Code folder not working as expected.

I have a couple of classes that I have created for my web project and I am going to store them in the App_Code folder. I don't want to store all the classes in the top level (no namespace) but want to organize them into namespaces. So far this does not seem possible because when I use the "using XXXX;" namespace statement it still can't ...

How do you clear your Visual Studio Cache on Windows Vista

I have a problem where my ASP.NET controls are not able to be referenced from the code behind files. I found this solution: http://stackoverflow.com/questions/38670/asp-net-controls-cannot-be-referenced-in-code-behind-in-visual-studio-2008 But I cannot seem to find my Visual Studio Cache to clear it. I am using Visual Studio 2005 o...

Organizing a Web Application

How do you guys organise your asp.net web applications? Do you have you classes in the applicaiton, or in a seperate class library? How do you split your classes into name spaces, by type, function, tier? I've got a great working applicaiton, but the codes a bit messsy, I want to look at the best way to organise it. ...

Visual Studio C++ Debugger: No hex dump?

Why is the integrated vs debugger so... barely functional? I cannot see the contents of an object in memory. For example, I am working with bitmaps and I would like to see them in memory. Do I need a better debugger for this? If so I am interested in recommendations. Nothing too powerful like a disassembler, just the debugger. ...

Why is runtime library a compiler option rather than a linker option?

I'm trying to build a C/C++ static library using visual studio 2005. Since the selection of the runtime library is a compile option, I am forced to build four variations of my library, one for each variation of the runtime library: /MT - static runtime library /MD - DLL runtime library /MTd - debug static runtime library /MDd - debu...

Redistribute resgen

Anyone know whether you can redistribute resgen.exe as part of your application? There doesn't seem to be any documentation on this on MSDN. ...

VisualStudio: How to add the dotted border to a UserControl at design time?

i have a user control that descends from UserControl. When dropped onto the form the user control is invisible, because it doesn't have any kind of border to show itself. The PictureBox and Panel controls, at design time, draws a dashed 1px border to make it visible. What is the propert way to do that? Is there an attribute you can u...

VB.Net Interface Visual Studio 2008 font color settings

Is it possible to change the color of the font that Interface Names appear in using VB.Net and Resharper/VS2008? I have been successful changing the interface Names in C# but no luck with VB :( ...

How do I get a user GUID from a selected item in a DropDownBox that is databound to a LINQ datasource?

This should be pretty straight forward but I can't seem to get my newbie mind around it. I have a ASP.net page that needs to create a new database entry based on user input from a web form. One control in the form is a DropDownBox that is databound to a LinqDataSource whose context is a LinqToSQL data class. The table it is bound to is...

Is there any IDE or Visual Studio/Mono/SharpDevelop plugin for braceless C#?

When I saw this article about using a python-like sintax (indentation based, without curly braces, syntax) for C#, I begun to wonder: can I have an IDE that parses and compiles it? ...

Awesome Visual Studio Macros

For a small community discussion, what are some essential Visual Studio macros you guys use? I just started learning about them, and want to hear what some of you guys can't live without. ...

Working with different versions/branches of the same Visual Studio 2005 solution

This is kind of a usability question for using VS2005: I have different branches of the same Visual Studio 2005 solution checked out from version control. The solution and project files are also under version control. On my development workstation, I sometimes have multiple instances of Visual Studio opened on a different version or bran...

Using ironscheme in visual studio 2008

Though it says on the IronScheme codeplex site that a plugin is included for visual studio, I have no idea how to get ironscheme working with VS... Is it possible? If so , how? Thanks ...

Unable to load referenced library

I get this error in Visual Studio 2008 when developing a ASP.NET Web Application Project. Unable to load referenced library 'Path-to-DotNetNuke\bin\file.dll': The process cannot access the file because it is being used by another process. This is a DotNetNuke project with multiple modules. IIS loads all assemblies from /bin f...