visual-studio

How to apply C# keyboard mapping scheme in VB 2008 Express Ed.?

Hi all, I´m used to developt in C#, but these days I´m using Visual Basic 2008 Express Edition, and I´d like to apply the C# keyboard mapping scheme in this environment. When I go to the options window, the only mapping scheme that I can list is 'default', that means, the VB keyboard mapping :( I don´t want to change al my shorcuts on...

Copy value of watch variable in visual studio without escape characters

Ok, this one has been driving me bonkers for ages and VS 2010 hasn't improved this. Say I have a variable like so string szSql = @"SELECT Foo, Bar FROM Table WHERE Foo = Bar"; If I'm inspecting this in the debugger and choose "Copy Value" the value put into the clipboard has \r\n's in place of the carriage returns whi...

Visual Studio insert tabs/newlines in breakpoint print message (tracepoint)?

Anyone know how to place a tab or newline into the print message of a breakpoint and have it show up correctly? Thus far I've tried '\t' and '\t' which give the same thing in the debug output. I've also tried just putting in 4 spaces, but they get removed after I click OK in the 'When Breakpoint is Hit' dialog. I'm using VS.NET 2008 wi...

Is there any reason to switch to Visual Studio 2010 for Windows Forms development?

I can't find any new features or improvements for Windows Forms in Visual Studio 2010. Am I missing something? I guess there are new features to C# and other parts of .NET in general. Any reason specifically to the GUI development portion? ...

Project builds skipped with Any CPU build platform

All: We are using Visual Studio 2010, and we have recently upgraded our workstations to Windows 7/64-bit. I have a question: When I create a new solution, it seems to want to use the x86 platform. If I change the solution to "any cpu" and then I add a new project to the solution, the project will not have an "any cpu" build option, an...

constant variables not working in header

if I define my constant varibles in my header like this... extern const double PI = 3.1415926535; extern const double PI_under_180 = 180.0f / PI; extern const double PI_over_180 = PI/180.0f; I get the following error 1>MyDirectX.obj : error LNK2005: "double const PI" (?PI@@3NB) already defined in main.obj 1>MyDirectX.obj : error LNK2...

For a Visual Studio ASP.NET solution, Rebuild (or Clean, then Build) doesn't seem to fix issues with binary mismatch for debugging

I from this answer what the differences are between Build, ReBuild and Clean solution, but I'm not clear about whether it only updates the binaries in the project dir(s) or also makes sure the ones in the IIS webroot, caches, etc. are replaced. Sometimes, I'll add a breakpoint and attach to the IIS process to debug and it will warn me t...

Visual Studio 2010 color theme

Has anyone found/made any decent color themes for Visual Studio 2010? My VS 2005/2008 themes seem to be getting mangled in the upgrade process. I'm accustomed to using the ever famous Oren Ellenbogen's Dark Scheme featured on Scott Hanselman's blog, but the upgrade process has made it downright butt-ugly. Does anyone have any gems they'...

Creating a Custom Start Menu Shortcut Link for a Visual Studio Setup Project

Is it possible to create a custom start menu shortcut link? The only possibilities I see in the setup project are shortcuts to folders or primary output. Update: What I ended up doing is creating a custom action on commit that dynamically creates the link using Windows Scripting Host. Then on uninstall, removing the link. ...

CComSafeArray: Are Indices Really Reversed for MultiDimSetAt and MultiDimGetAt?

In the MSDN documentation for CComSafeArray::MultiDimSetAt, alIndex is documented as follows: Pointer to a vector of indexes for each dimension in the array. The rightmost (least significant) dimension is alIndex[0]. In the documentation for CComSafeArray::MultiDimGetAt, alIndex is documented differently: Pointer to a vector of...

Does CComSafeArray MultiDimSetAt Make a Copy of the Referenced Element?

The CComSafeArray::SetAt method provides a parameter to control whether the referenced variable is copied: HRESULT SetAt( LONG lIndex, const T& t, BOOL bCopy = TRUE ); ... but the CComSafeArray::MultiDimSetAt method does not offer the same parameter: HRESULT MultiDimSetAt( const LONG * alIndex, const T& t ); Two questions: 1.) Is...

How are .libs created in your VS solution linked by another project?

If I have a project Foo that has a .lib as an output that's also used by projects Bar and Baz, how do I let Bar and Baz know where to find the library assuming MSVC? I have the project dependencies set up already, but how do I #pragma comment(lib, "????/Foo.lib") properly? ...

Visual Studio Forms Designer and the size of invisible objects

The form designer in Visual Studio is giving me fits and I'm hoping someone can at least point out what's going on. The latest incarnation involved a tab sheet with some controls on each of the sheets. Sheets #2 and #3 were done and I was working on #1--when suddenly two controls on sheet #2 vanished in the running program. Some hunti...

Immediate window execution in design mode asp.net

As far I know this is not supported for asp.net projects. It's quite handy for testing static/shared functions. Does anybody have any info if this will be available in future versions? Or if there are any alternative ways to test your functions in design mode? ...

Auto compile sub project of a website solution.

Is to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change. So is this possible? ...

Is VisualStudio 2010 built with WPF/XAML?

I had a crash with the new Release Candidate and the details suggested something went awry with WPF. Is it the case that at least some of the UI in the new release is built using WPF and XAML? ...

Visual Studio 2008/2010 - Professional vs Team System

Hi, Ok, I know this isnt a programming question, but I think its really important to understand the differences to be a more productive developer...so please don't close this question!! And yes, I do feel stupid for asking this question! Have only ever worked with the Prof edition of VS 2005/2008. Now that we have a team of 6 people,...

How to automatically stop debugging when starting to edit code?

I am working on an ASP.NET project. When I am debugging, I often want to switch back from my browser to Visual Studio (2008) and edit some code. Visual Studio then won't let me edit the code, unless I explicitly quit debugging first. Is there any way to configure Visual Studio such that is automatically stops debugging and allow me to ...

Why does Code Analysis not warn about NotImplementedException?

I'm pretty sure that previous versions of Visual Studio Code Analysis warned about the use of NotImplementedException, i.e. any member that contained this throw new NotImplementedException(); would give a CA warning. This doesn't seem to be the case with Visual Studio 2008. Was that particular rule removed, or am I just imagining th...

Build static Library Using Visual C++ 2008, and Use it under Visual C++ 6

I was wondering any of you has successfully done that before? If yes, is anything I need to pay attention to? ...