visual-studio

What is the difference between Build Solution and Batch Build in Visual Studio 2008?

What is the difference between Build Solution and Batch Build in Visual Studio 2008? ...

How to fix the following build error in Visual Studio 2005: '"LC.exe" exited with code -1'

I get the following error when building my Windows Forms solution: '"LC.exe" exited with code -1' I use 2 commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my WinForms Projects. We also use Visual Sourcesafe as our Source Control. When the licenses.li...

How do I get the assembler output from a C file in VS2005

I think the file that is produced is an .asm file, any idea how to produce this in Visual Studio when you do a build? ...

Best Way to Reuse Code When Using Visual Studio?

I've tried 2 different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of 2 ways. I have tried bringing the projects I need from this code library into my pr...

Best practices for debugging linking errors.

When building projects in C++, I've found debugging linking errors to be tricky, especially when picking up other people's code. What strategies do people use for debugging and fixing linking errors? ...

nmake, visualstudio, and .mak files

I was given a C++ project that was compiled using MS Visual Studio .net 2003 C++ compiler, and a .mak file that was used to compile it. I am able to build it from the command line using nmake project.mak, but the compiler complains that afxres.h was not found. I did a little searching around and the afxres.h is in the Visual Studio dir...

How can I point Visual Studio 2008 to a new path for projects?

I didn't see the option to point the workspace (or it's VS equilivant, I'm still learning the terminology for VS, but it is called a workspace in Eclipse) to My Documents/Programming instead of, well, wherever it is now. ...

Exception in Web Service locks DLL and prevents publishing. Workaround?

I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web Service prevents me from publishing successfully (even though it thinks it published successfu...

Visual Studio 2008 Training

I've been put in charge of coming up with a training itinerary for my team at work for a migration from c++ to Visual Studio 2008 with C#. The actual language switch I'm not too worried about, its the learning curve to Visual Studio. What does everything think would be the best way to set up a training course? I was thinking of ha...

Finding out the source of an exception in C++ after it is caught?

I'm looking for an answer in MS VC++. When debugging a large C++ application, which unfortunately has a very extensive usage of C++ exceptions. Sometimes I catch an exception a little later than I actually want. Example in pseudo code: FunctionB() { ... throw e; ... } FunctionA() { ... FunctionB() ... } try...

Any recommended VC++ settings for better PDB analysis on release builds

Are there any VC++ settings I should know about to generate better PDB files that contain more information? I have a crash dump analysis system in place based on the project crashrpt. Also, my production build server has the source code installed on the D:\, but my development machine has the source code on the C:\. I entered the sou...

Dual-Screen Visual studio enviornments

Hi, I've been trying to optimize my desktop and workspace within Visual Studio. I use two 19" LCDs, which give me a 1440x900px screen real estate for each monitor. I have posted my initial setup at my blog though I did not get a good response. With the start of Stack Overflow I think we will have a better radius of programmers. ...

designing Panels without a parent Form in VS?

Does anyone know of any tools/plugins that allow you to design a Panel independently of a Form (Windows, not Web Form) within Visual Studio? I've been using the designer and manually extracting the bits I want from the source, but surely there is a nicer way. ...

How do I make a fully statically linked .exe with Visual Studio Express 2005 ?

My current preferred C++ environment is the free and largely excellent Microsoft Visual Studio 2005 Express edition. From time to time I have sent release .exe files to other people with pleasing results. However recently I made the disturbing discovery that the pleasing results were based on more luck that I would like. Attempting to ru...

Is it possible to convert projects wizard created for MSVS 2005 to MSVS 2008 format automatically

I have a bunch of wizards created for MSVS 2005. Is it possible to convert them to MSVS 2008 format automatically? ...

What tool to use for automatic nightly builds?

I have a few Visual Studio Solutions/Projects that are being worked on in my company, which now require a scheme for automatic nightly builds. Such a scheme needs to be able to check the latest versions from SVN, build the solutions, create the appropriate downloadable files (including installers, documentation, etc.), send e-mails to th...

UI and event testing

So I know that unit testing is a must. I get the idea that TDD is the way to go when adding new modules. Even if, in practice, I don't actually do it. A bit like commenting code, really. The real thing is, I'm struggling to get my head around how to unit-test the UI and more generally objects that generate events: user controls, asynch...

What is a good maintainability index using Visual Studio 2008 code analysis?

My company recently purchased TFS and I have started looking into the code analysis tools to help drive up code quality and noticed a good looking metric "maintainability index". Is anyone using this metric for code reviews/checkins/etc? If so, what is an acceptable index for developers to work toward? ...

ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008

Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can't reference all of them in the code behind. Some of them I can, it seems that the first few I put on a page work, then it just stops. I first thought it may be the ty...

What is the best way to create a wizard in C# 2.0?

I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen. I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve this. I have seen a couple of 3rd party Wizard controls, and I have also...