visual-studio

Can Visual studio plugins get notified of c++ build/CL tasks/calls to CL.EXE?

I would like my cl.exe (the c++ compiler process) processes to run at lower than normal priority so that my UI threads are not affected. I have turned on /MP builds for most of my projects and want to take advantage of all the CPUs, but don't want the box to be bogged down and unusable. A co-worker wrote a utility that monitors threa...

Unhandled Exception checker plugin for Visual Studio

I would like to be able, at compile time, to ask any given method what possible Exceptions might get thrown by invoking it. The list of Exceptions should include any uncaught Exception that might get thrown in any nested method invokation. Caught Exceptions should not be included in the list as I'm only interested in the Exceptions that ...

How can I use my own connection class with a strongly typed dataset?

I have designed a class with sqlClient.SqlCommand wrappers to implement such functionality as automatic retries on timeout, Async (thread safety), error logging, and some sql server functions like WhoAmI. I've used some strongly typed datasets mainly for display purposes only, but I'd like to have the same database functionality that I ...

Question concerning Win32 Console app vs. CLR Console app

Hello, I'm working on a C++ project that I don't intend to develop or deploy using .NET libraries or tools, which means it would make sense for me to create it using a Visual Studio Win32 Console application. However, I've heard that the debugging abilities when using a CLR application under Visual Studio are much more powerful. So I ...

Is there anyway to disable Visual Studio auto complete for object keyword

Short version- is there a way to turn off Visual Studio Intellisense for the object keyword. Long version- I'm using Visual Studio 2008 and I'm basically using anonymous types. I begin typing something like: Assert.AreEqual("/SomePath/Stuff", GetOutboundUrl( I type in new { Then I see that Visual Studio has recognised that the metho...

Why is Visual Studio 2008 always rebuilding my whole project?

I have a Visual Studio project with about 60 C++ source files. I can do a build, and it completes without errors. But if I immediately hit F7 again, it always re-compiles about 50 of the source files. It doesn't re-compile all of the files, which is strange. I have 'Enable minimal rebuild' (/Gm) set. Any ideas why it might be doing this...

How to stop Visual Studio from auto formatting certain parts of code?

This seems like it should be really simple to do but I just can't figure it out. I want to allow Visual Studio to keep auto formatting my code as it is, except for this part: public SomeClass : BaseClass { public SomeClass() : base() { } } Why can't I have it look like this instead: public SomeClass : BaseClass ...

Why can't I drag execution point in IntelliJ (I can in Visual Studio)

In Visual Studio, when debugging, one can drag the execution point (current instruction pointer, yellow dot) to another place in the current method. This is impossible in IntelliJ, and some have stated it's generally impossible in Java. Why? ...

visual studio property missing characters

I've just started up visual studio express 2008 for the first time in 6 months, and the when I expand the properties window, all the name/values are rendered as squares. Event the ellipses (...) are squares! The weird thing is, all other text is OK, the code, toolbar, menus etc. What font/character set does visual studio use for this te...

VS Image Library .png files

Microsoft deploys free Image Library with Visual Studio. At following location, you can find .png files which contain more than one icon in it. c:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033\VS2008ImageLibrary_Common Elements\Actions\ Is there any way to access particular icon from file programmaticaly, ...

How to reference a self made assembly that is installed in the GAC in visual studio?

I created a homemade assembly and I think I installed it correctly in the GAC using the .Net 2.0 configuration tool (mscorcfg.msu) However, when I want to reference it in visual studio, where do I find it? ( I know, I should not use the GAC anyway, but indulge me ;-)) EDIT: I did not ask the question clear enough: After installing the ...

How can I stop Visual Studio automatically upgrading projects?

I'd like to give VS2k10 a shot, but I'm in a VS2k8 environment. I compared the upgraded project files in VS2k10 and the only difference was the updated version number - how can I stop VS from doing this? ...

Ultimate grid invisible

Hello, I am trying to use ultimate grid from Code Project in a dialog box but the grid is invisible. m_Plist.AttachGrid(this, IDC_CREDENTIALS) returns true but the static text place holder where the grid should be shown cant be seen and the grid is never displayed. I am using sample the code from here http://www.codeproject.com/KB/M...

SDK lives in C:\windows\assembly on a remote machine how do I add this into VS?

Hi all, I am using sharepoint based plugin that has an SDK, the SDK is installed as part of the plugin on the Sharepoint server, the SDK documentation mentions the assembly sharepoint.eplugin.dll, I couldn't find this file anywhere but I've been told everything I need is in the c:\windows\assembly folder, I've not come across this befor...

Resolving a namespace using the keyboard

When writing code in .NET, if you use some function in a namespace that has not been included in your page, you get a tooltip-like popup [e.g. System.Data.Sql?]. If you click it, it adds the namespace to your page. Is there a keyboard short-cut to add the namespace? (I know you can use the right-click button on the keyboard, go to Res...

My MFC Application Freezes if I Switch to Another App

Commence V 2.0 of this question. My VC++ MFC application compiles and runs just fine. That is, until I switch to another window. As soon as my program loses focus, it freezes; I cannot switch back to it and if I move a window that is in front of it, my app window displays white in the space that the other window was covering. Since I f...

[C++] Hide class' methods from Intellisense and/or certain "clients"?

I know how to perform this for C++/CLI and .NET in general but, C++ doesn't have Attributes. The scenario is this: We want to provide some methods in the binary but we don't want all of our customers to use them. If a customer needs it, we can either tell him what the signature is or, send him another non-binary file. ...

ITypeResolutionService not resolving any types

I'm working on a visual studio 2008 add-in that will generate data-access code by looking at the method signature combined with a set of options the user enters in a dialog. For analyzing the method signature I use the ITypeResolutionService of visual studio to lookup a type that either exists in the current project, in the referenced ...

Can we instruct Visual Studio Setup to keep existing files for re-install?

I have a Windows Forms application with an installer (.msi) already created with Visual Studio. I am now creating a new installer for version 2.0 with the property RemovePreviousVersions set to true. Now, when I install 2.0 over 1.0 it removes 1.0 and installs 2.0 completely. Is there a way that I can tell the installer if you find som...

WPF Visual Studio Templates - extend tabitem

I'm working on a wpf project in visual studio 2008. I would like to add a xmal and xaml.cs file that describe a TabItem. Templates exist for "Page", "UserControl" and others but not TabItem. How do I either make my own template or accomplish this without a template? Thanks! ...