visual-studio-2008

Comparing default-constructed iterators with operator==

Does the C++ Standard say I should be able to compare two default-constructed STL iterators for equality? Are default-constructed iterators equality-comparable? I want the following, using std::list for example: void foo(const std::list<int>::iterator iter) { if (iter == std::list<int>::iterator()) { // Something } } ...

Can't fire MouseWheel event in C# Windows Forms.

First off, the mousewheel event is not listed in Visual Studio 2008's events pane which is very annoying. I found the correct format online though, and wrote this into my code: private void Form1_MouseWheel(object sender, MouseEventArgs e) { Debug.WriteLine("Foo"); } ...from which I'm getting no response when the ...

Validate a Gridview

I have a gridview that I want to validate when it is in edit mode. how do I do this? Below is my Gridview and below that is my first attempt. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px...

Visual Studio (with TFS) history other than solution explorer?

Has anyone ever found other ways to get a file's commit history outside of solution explorer? It's really annoying that history is so stagnant because it is a really helpful view. I just wish it would show the current file. Here is the use case. I build my gigantic solution, find random errors in files I have never heard of and want to...

How to force VS to use appSettings value instead of My.Settings for WebService Reference

In visual studio 2008 when you add a web service reference, and set the Url behavior to dynamic it will create a My.Settings.Namespace.Webservice setting in a special My.Settings section in the web.config i do not like this style, i want to keep using the appSettings>value for this. how can i tell visual studio to use appSettings instead...

Implementing a mouse-bounding edge.

Otherwise known as a hard edge, this is a line over which the mouse cannot cross. Useful in games and the like. Currently, I have a function that returns if my mouse cursor is in a polygon drawn on the screen. If it is not, I move my cursor to the last stored point that was in the polygon. if (!PointInPolygon(local, polyGon)) {...

How do i capture the Print Screen key?

Hello everyone. I my program i need to capture when the Print Screen key is pressed down but it is not working (however it works with other keys). I guess this has something to do with windows hijacking my authority and since im still new at this i'd love to know how i can get around this issue. Here's my current code: namespace Boom...

Retrieving Process Description Information

Good Day, I am trying to retrieve process information and I'm aware that I can use: Process[] myProcesses = Process.GetProcesses(); but how do I retrieve the process description? Is it via some Win32 API call? I'm running Vista and when I click under the Processes tab in Task Manager, I see the description. TIA, coson ...

Can't open SQL 2005 Express database from solution explorer

We are having a problem with Visual Studio 2008 Professional, where opening a SQL express database from Solution explorer only opens the file in binary form. We thought that the wrong application might be set, but using open with and selecting SQL express bootstrapper still yields the same result. We can open the database file if we us...

How to check during setup if a certain program is running?

Hi all, I'm creating a setup project using Visual Studio 2008 and I was wondering if there is a standard way to check if a certain program is running during the setup? In this case I want to check for any instances of Microsoft Excel. thanks in advance! ...

Visual studio 2008 dataset generation issue (namespace issue)

Hi, At work we use typed dataset in some projects for our DataAccess layer. Sometimes we extend them using the partial class feature : using View code on a dataset create a DataSetName.cs with the partial class declaration where you can add code. Inside this file we also add the TableAdapter partial class. Recently we migrated on Visua...

What is the difference between "DSL Tools" and "Oslo"?

Hi, I've just started playing with domain-specific tools development, and I'm playing with Visual Studio SDK DSL Tools. However, I heard that Microsoft have another initiative into domain-specific development called "Oslo". My impression is that DSL Tools is focused on graphical domain-specific languages, whereas Oslo is focused on tex...

How to return a value from custom action script in a VS2008 setup project

Hi all, I'm creating a setup project and I need to execute a VBScript file as a custom action, but I don't know how to return a value from the script to the installation. I need to do this, because I want to decide in the script whether the installation should continue or fail. thanks in advance. ...

VS2008 Addin add to menu.

I'm using this code to add an item to the code window right click menu: public void OnConnection( object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) { _applicationObject = (DTE2)application; _addInInstance = (AddIn)addInInst; object[] contextGUIDS = new object[] { }; Command code...

Visual Studio keyboard shortcut for Method Name combobox

In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the right is a Method Name combobox. Those are the tooltip descriptions but are a little misleading for instance the Method Name box shows all the methods, properties, even...

How does MSLinqToSqlGenerator determine the return type of a stored procedure?

Hello gurus, I have a stored procudre (SP) as follows: CREATE PROCEDURE [dbo].[UDSPSelectMissing] -- paramters omitted AS BEGIN -- Code Omitted SELECT c.MemberID, c.FirstName, c.MiddleName, c.LastName, c.Suffix, c.PhoneHome, c.PhoneCell, c.Email FROM [dbo].[Members] c WHE...

compiling "standard" C++ in visual studio (non .net)

(This is a probably a very beginner question and I may be missing something obvious) I've just moved from my mac back to windows, and I'm trying to get set up with C++. I have visual studio 2008 C++: how do I compile "normal" non .net/clr C++? I want a command line application, and the only project that seemed fit was "CLR console appli...

CVS diff from inside VS2008

Creating an Addin to use your favorite diff tool for doing a diff between the current active document and the last checked in version seems to be one way to go. Is there an option in VS2008 that I might configure to do this for me ? ...

How to change app.config from the MSI installer, designed on Visual Studio?

I have this .NET application which use Settings.settings and app.conf as configuration repositories instead of the Windows Registry. It seems pretty easy to ask questions to the user during the installation and write the responses to the Windows Registry, but I have not found yet a way to write the responses to the app.config file. Does ...

Visual Studio Bring Background cmd.exe to Foreground

Is it possible to rise a cmd.exe processes from the silent background mode to the visible foreground so I can LOOK at them? Problem Background: I'm using VS2008 working with a very large solution containing C#, C++, and Fortran. Occasionally (a few times a day) when building my project the build hangs and does not allow me to do anythin...