visual-studio

Put breakpoint on named function

Is there a way to put a breakpoint on any function in Visual Studio, sort of like bm kernel32!LoadLib* in WinDbg? I know one way is to break at application start, find the required DLL load address, then add offset to required function you can get via Depends, and create a breakpoint on address. But that's really slow, and switching to ...

How to ignore an explicit error in VS2010?

I would like VS2010 to ignore an error in XAML Code. The Reason is, it's not a real error, I have a own class of Windows and VS is not able to create an instance of it. So now it always shows "Can not create an instance of "ChildWindow"". This would not be bad, but it marks the hole file as error, and this looks realy ugly. So: I would...

Extending C# language?

Basically what I would like to know is if there is any way to add new 'statements' to the .net based languages? An example of what I'm looking for would be something like introducing a public class MyClass decoratorOf ClassWithLotsOfMethods and in pre-compile time changing that to be a normal class that overrides everything by default bu...

Auto-generate a try catch block in visual studio 2010

Hey guys, Anyone know if there is a keystroke shortcut or option to autogenerate a try/catch block around a statement in Visual Studio 2010? I can see what exceptions are thrown if I look at the overlay documentation when I hover over a statement. I'd like to right click -> generate try/catch, as it would save a lot of time in handling ...

How do you print nicely in LEDA

How do you print 'nicely' in LEDA? I am looking for the equivalent to fixed setprecision(3) ...

Shared Templates in Visual Studio

I've got a bunch of useful Project Item templates for Visual Studio 2010 and I'd like to share them with the developers in my team. At the moment the zip files are sitting on a network share with an instructions text file telling users to copy the zips deep into their Documents folders. I'd much rather have Visual Studio look in the s...

Debug and Release configurations

As we all know, in Visual Studio there are two predefined configurations - Debug and Release. I have been using them since I started programming and soon learnt their differences. However recently I had to create my own configurations and now I have a question: Are those two configurations defined/determined solely by their parameters/op...

How to build Silverlight 4 applications without Visual Studio?

Hi, We're setting up a TeamCity build server for continuous integration. To keep things clean, we don't want to install Visual Studio on the build server. I'm wondering how we can build Silverlight 4 apps without it? I'd expect there to be a Silverlight 4 SDK which installs separately from VS - but so far I haven't found one. There's ...

No force of exception handling?

Hi! Programming Java in Eclipse, I'm used to having to deal with exceptions. In C# with VisualStudio it seems I can not say "throws exception" on a method... After a lot of coding I found lots of exceptions, and had to catch them as I found them during testing. I'd like to be forced to handling them, so that VisualStudio can say that he...

Downgrade SQLServer CE database

I have a SQL Server CE database I am developing with and would like to downgrade the version so that 2005 Management Studio will open it. Currently, I have to use VS 2010 to open it, but it is a real pain to use that way. I know I could install the 2008 version of SSMS, but the machine I use has serious problems with all installs. There...

Why is cross thread operation exception not thrown while running exe in bin\Debug

I was debugging an application and somewhere in the code, a thread tries to reach a listbox that was created by another thread. On attempt to access the listbox, the application throws a "Cross-thread operation not valid: Control 'listbox' accessed from a thread other than the thread it was created on" exception while debugging. However,...

Looking for a recursive GUI (Microsoft & Visual Studio)

Is there a component that presents the user a graphical design a layout like VS does? (Only graphical display functionality needed) That is, he/she could place a label, Image or any 3rd party component that draws something (important!). Thanks! ...

Advanced debugging with dev-c++

I am normaly using Visual Studio 2008 Express, which is quite powerful, but some geeks in head of competition in programming said that we are allowed to use only Dev-C++ as compiler ( I know it's smaller but I think that competition should be about testing your skills in writting code not using all kind of compilers). Anyway in VS2008, e...

Is there a way to specify a default install folder for Visual Studio Extensions?

I am trying to save my SSD from to much thrashing. ...

How to produce a coverage report from a visual studio .coverage file that is similar to the one produced by emma?

Hi, Visual Studio code coverage produces a .coverage binary file which can be converted to xml. Is there an xsl transform available that can convert that xml to a formatted report similar to the one produced by emma coverage tool for java. Any other transformations that would produce a meaningful report are also welcome. ...

Flow chart generator from source files

I'm searching for a tool that let me generate a flow chart for a given project. It is difficult understand others code by looking at code, a flow chart can be very helpful. My Project is in VS 2010 Professional Edition. ...

Visual Studio to merge assemblies then sign the combined assembly using builtin sign-in function

Hi, I have a problem to merge assemblies and signing the combined assembly with password automatically when building the project. The visual studio built-in sign in function is pretty good that once you entered the password for the .pfx, you don't have to enter it anymore and the password seems to be well hidden (that's what I think at...

how to Create Tasks for other users using Exchange Web Services (EWS) Managed API

i try to create task for another users Task class needs Contasct with StringList format. How can i do that. i think that i do what i need to make it? Look please StringList list = new StringList(); foreach (string item in obj.RecipientsList) { list.Add(item); } public class MyOu...

Are standard library warnings normal?

I'm learning my way around visual studio at the moment. If I've turned set /Wall -- I'll be greeted with a seemingly unhealthy amount of warning messages although my application will compile just fine. Is this normal? Changing the error level will stop the messages. It looks as if they are all related to the C++ STL or its header files ...

Visual Studio option - Stop on any project error

Is there any way in VS that I can make it stop building the solution if ANY project in the build step fails to build? I have a solution that has cca. 100 projects. I want build process to STOP if it encounters build error on any of the projects. Failing build means that there were build errors while building that project. ...