visual-studio

VB6 / Crystal Report 8.5 error: A string is required here

I recently inherited an old visual basic 6/ crystal reports project which connects to a sql server database. The error message I get (Error# -2147191803 A String is required here) when I attempt to run the project seems to be narrowed down to the .Printout command in the following code: 'Login to database Set Tables ...

What is your single favorite feature in ReSharper?

My whole department has owned individual copies of ReSharper for about a year, but I find I'm one of only two people that actually use any of its features regularly. I'm trying to get everybody to use it more effectively and would like opinions on the most useful features and their shortcuts so I can share more than just what I use it f...

Can FxCop/StyleCop be limited to only analyze selected methods from with Visual Studio?

I am taking on a maintenance team and would like to introduce tools like FxCop and StyleCop to help improve the code and introduce the developers to better programming techniques and standards. Since we are maintaining code and not making significant enhancements, we will probably only deal with a couple of methods/routines at a time whe...

ReportViewer displaying black background in Print Layout mode

In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround? ...

What are the (dis)advantages of using Cassini instead of IIS?

I've found that on some occasions I can edit the source while debugging, are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS? I'm using windows XP on my development environment, and a local instance of IIS 5. I work on several projects, so I use multiple virtual directories ...

Using multiple web projects with different languages in Visual Studio

I need to combine a VB web project and a C# web project and have them run alongside each other in the same web root. For instance, I need to be able to navigate to localhost:1234/vbProjPage.aspx and then redirect to localhost:1234/cSharpProjPage.aspx. Is this possible from within Visual Studio 2008? I know you have the ability to crea...

CVS and Visual Studio 2008 - integration options

I'd like to increase developers' "comfort level" in our team a bit. We are using Visual Studio 2008 and TortoiseCVS + WinCVS, but no integration as of yet. In your CVS/Visual Studio experience, what is the best integration tool in terms of "supports basic CVS functionality add/diff/update/commit/annotate/etc", "works out of the box", al...

Sharing binary folders in Visual Studio

For a long time i have tried to work out the best way to access certain site files which i don't wish to be apart of a project or to ease integration with multiple developers (and talents, e.g. designers) on a single project. A lot of sites i have created have had folders with large amounts of images and other binary files which i have ...

What is the best way to inspect STL containers in Visual Studio debugging?

If I have a std::vector or std::map variable, and I want to see the contents, it's a big pain to see the nth element while debugging. Is there a plugin, or some trick to making it easier to watch STL container variables while debugging (VS2003/2005/2008)? ...

ReSharper giving C# 3.0 Code Inspection Warnings to .NET 2.0 Projects

When I am working in .NET 2.0 projects with the newest version of ReSharper (4.1) I am getting warnings about using the var keyword and lambadas etc.. Any idea how I can disable this only for .NET 2.0 projects? ...

Why use windbg vs the Visual Studio (VS) debugger ?

What are the major reasons for using Windbg vs the Visual Studio debugger? Edit: and is it commonly used as a complete replacement for the VS debugger, or more for when the need arises. ...

Compartment items not displayed in DSL diagram

OK, so things have progressed significantly with my DSL since I asked this question a few days ago. As soon as I've refactored my code, I'll post my own answer to that one, but for now, I'm having another problem. I'm dynamically generating sub-diagrams from a DSL-created model, saving those diagrams as images and then generating a Wor...

Running an MVC application through IIS results in "Directory listing denied"

I have an .Net MVC application which runs fine if I use the build in Visual Studio Webserver. If I use the projects property pages to switch to IIS as the webserver and create a virtual directory for my project, any request I send to the server results in a "Directory listing denied" failure. Does anyone know a solution for this? ...

VS/vb.net: How to get the instance used by a With statement in the immediate window

VB.Net has a the very handy "with" statement, but it also lets you use it on an unnamed variable, like this: With New FancyClass() .Level = "SuperSpiffy" .Style = Slimming .Execute() End With Is there a way to get at the "hidden" instance, so I can view it's properties in the Immeidate window? I doubt I'll get it in the w...

What is your favorite Visual Studio add-in/setting?

What add-in/setting in Visual Studio can you not live without? Which one improves your productivity or fixes something you can't stand in Visual Studio? Why is it your favorite? My favorite is aspx edit helper because it does really improve my productivity when working with ASP.NET applications. What it does is provide a quick way to t...

Changing the default settings for a console application

I would prefer that a console app would default to multithreaded debug. warning level 4. build browse information. no resource folder. Does anyone know of any technique that would allow me to create a console app, with my desired options, without manually setting it. ...

Code review addin for Visual Studio

This isn't so much as a question, as an idea which I think would be helpful. I decided to post it here to get feedback on the idea. I'm not sure if this isn't exactly the right place to post it, but I wanted to see what you guys think. My idea is to create an code checkin policy which displays a diff of each modified file. To be able to...

Can you debug a .NET app with ONLY the source code of one file?

I want to debug an application in Visual Studio but I ONLY have the source code for 1 class. I only need to step through a single function in that file, but I don't understand what I need to do it. I think the steps are normally something like this: Open a file in VS Load in the "symbols" (.PDB file) Attach to the running process I...

C# - Why is a different dll produced after a clean build, with no code changes?

When I do a clean build my C# project, the produced dll is different then the previously built one (which I saved separately). No code changes were made, just clean and rebuild. Diff shows some bytes in the DLL have changes -- few near the beginning and few near the end, but I can't figure out what these represent. Does anybody have in...

Disabling single line copy in Visual Studio

Is there anyway to disable the rather annoying feature that Visual Studio (2008 in my case) has of copying the line (with text on it) the cursor is on when CTRL-C is pressed and no selection is made? I know of the option to disable copying blank lines. But this is driving me crazy as well. ETA: I'm not looking to customize the keyboard...