visual-studio

What's the purpose of Create GUID tool in Visual Studio?

Visual Studio has a Create GUID tool (Tools > Create GUID). What is it for? Can you remember what was the last time you used it? I just can't imagine why i should copy into the clipboard a new GUID with that tool. ...

Why are many Designer classes in System.Design marked as internal?

I have been developing some components for our products at work, and one of them is based off the flow layout panel. What i would like to do is provide a custom designer for it, but without loosing the features provided by it's default designer (System.Windows.Forms.Design.FlowLayoutPanelDesigner) which is marked as internal. Using Ref...

Visual Studio 2008 crawling after long idle time

What's up people. Something's been bothering me for a while now... and I was wondering if any of you might know of a workaround for this. The C# solution im working on is a huge solution that contains about 20 projects and almost the same amount of unit test projects. Each projects contains hundreds of files. So opening and closing the...

Default browser for specific solution in Visual Studio

I want to debug my silverlight project in IE and debug other ASP.Net projects websites on firefox. How to set default browser for specific solution? EDITED: it is website, not project. ...

Adding a database to an ASP.NET Web Service

Okay this question could either be very broad or very specific because I am not sure if I am going about this in a fundamentally wrong way or if I am close to correct. First an overview: What I am trying to do it create a server application for all of the clients in my organization to connect to. I think the best way to do this is to us...

Unit Testing With Computer Owned States

I am writing a unit test for when my computer receives/makes a phone call. The methods being tested are the events that handle the incoming/outgoing call. If the caller is not an approved caller then the call is rejected. The code works fine, but I can't really find anything to test against for my unit test. The problem is that the a...

Any way in Visual Studio to not break on throwing of a specific exception?

Is there a pragma or debugger attribute which will allow the debugger to not break on the throwing of a specific exception even though under the Debug >> Exceptions menu I've told it to break when any CLR Exceptions are throw? In general while developing I like to have it break on exceptions while debugging so that I can immediately ins...

VS2008: Prevent attempting to link if any projects fail.

In VS2008, when you build a big solution with many projects, if one of the projects fails with an Error, it still attempts to link the startup project, which obviously is unnecessary in most cases because if a project fails you'll need to fix that error first before running the program. Does anyone know how to get VS2008 to not try to l...

VB.NET: Dialog exits when enter pressed?

Hi all; My problem seems to be quite simple, but it's not working the intuitive way. I'm designing a Windows Forms Application, and there is a dialog that should NOT exit when the enter key is pressed, instead it has to validate data first, in case enter was pressed after changing the text of a ComboBox. I've tried by telling it what ...

Create db from db project

Does anyone know how to create an entire database from a visual studio database project? Rather then running logs of smaller scripts individually. Thanks ...

Why does the C++ ofstream write() method modify my raw data?

I have a jpeg image in a char[] buffer in memory, all I need to do is write it out to disk exactly as is. Right now I'm doing this ofstream ofs; ofs.open(filename); ofs.write(buffer, bufferLen); ofs.close(); but the image doesn't come out right, it looks garbled with random black and white stripes everywhere. After comparing the imag...

Adding VC++ to Eclipse toolchain

I want to write a program to link with binaries already created with VC++. What are the steps to add a toolchain for VC++ in Eclipse? Has anyone tried it successfully? If so, does the debugger still work? ...

AnkhSVN shelves

I just setup AnkhSVN after having used TFS till now What in AnkhSVN is the equivalent of shelves that I would create/use in TFS? ...

Makes chances of something happening C#

How can I make a script that makes one thing happen 4/5 times and the other thing 1/5 times I need it to appear after this private void Arrest() { Ped Criminal = Player.GetTargetedPed(); if (Exists(Criminal) && (Player.Character.Position.DistanceTo(Criminal.Position) <= 10.0F)) { ...

Undo VS 'Exclude from project'?

Hi, Is there a way to undo the 'exclude from project' operation in Visual Studio (2008) ? Thanks ...

Get Project or Relative Directory with T4

How can I get a reference to the directory of the visual studio project or solution or the directory of the t4 template from within a t4 template? I have a template that concatenates a number of files together which are located relative to the template. I need to get a reference to there absolute location through a relative means. Hard ...

Visual Studio Debug Mode - Peculiar Behaviour

In visual studio 2008 while in the debug mode when we initiate a thread and put break points inside the thread function. Visual Studio doesn't debug giving explanation that i don't have the code. Why does this happens. How to do it ...

When typing $( in visual studio for jquery... it gets automatically converted to $addHandler(

Everytime I start typing $( to call a jquery command visual studio 2008 automatically converts that to: $addHandler( ... I have to delete that and retype it every single time. Is there a way to fix this change it? ...

Problem creating static/dynamic c++ libraries in visual studio

When I try to build my c++ library (in both static and dynamic mode) using visual studio 2008, in the debug folder, instead of .lib or .dll file, some .obj files are created along with an .idb and an .pdb file. how can I make visual studio build the library file? ...

How does one install VS2008 on Vista?

I met a lot of problems when I'm trying to compile with VS2008 on Vista. Because I'm new to VS2008 and new to programming in Windows, I'm totally lost when errors happen. My problem is as following: The vs2008 has anyway been installed and I tried to build a open source app and the compilation stopped due to errors. In the output win...