visual-studio

C# Decimal Data Type

Good Day, In order to work with decimal data types, I have to do this with variable initialization: decimal aValue = 50.0M; What does the M part stand for? coson ...

Performing expression evaluation/reduction in Visual Studio 2008

Is it possible to get Visual Studio to do mathematical expression evaluation/reduction? For example if I type '-0.005 + -0.345' how do I get Visual Studio to reduce that (i.e. replace it with the reduction)? Do I have to write a macro? If so, are there any pre-existing macros to do this type of expression reduction? Just to be clear,...

Best Practices for IntelliSense JavaScript references

Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applica...

using pragma or any programmatic way of excluding a cpp/header file from a project in Visual Studio

I know there are other questions regarding that, and I also know that I can right click on the files that I want excluded, and select Exclude from Project. However. I'm wondering if there are any easy ways of achieving the same purpose programmatically. For example, in a VS project, to link with an external library, I can either add the ...

Is there a decent tool for automatically cleaning the crap out of VS solution directories?

I'm looking for a tool to automatically clean all the .suo, .user, files... bin, obj, directories, etc out of a VS solution directory... One I came across was Jeff Atwood's CleanSourcePlus but it's quite old at this point, requires .NET 1.0 to be installed (I know...but it's a pain), and was written in VB :P I basically want the same f...

C++ / CLI - Change all files to UNMANAGED by default

Does anyone know how to change the default behavior of the /clr switch to make all files unmanaged by default? The default behavior of the switch is to make all files managed. I know I can mark each .cpp file individually, but there are ALOT of them... ...

Tool to remove hanging code.

This question is in continuation to http://stackoverflow.com/questions/979129/. It would be great if there is some tool that would allow to remove the hanging code (code not being used). Examples would be unused variables,references,functions or even class (old code or code only written for experimentation). ...

when visual studio is in full screen mode, how to bring taskbar "always on top"?

How to bring the taskbar on top of Visual Studio 2008 when in "Full Screen" mode? I often go full screen, but the task bar will become hidden. How can I keep the task bar from hiding? The rationale behind this is: - We use google talk, for our quick communication in our office. So, when I go full screen, I am not able to see the IM no...

Breakpoints not working in Visual Studio 2008

When I hit F5, my VS 2008 opens my site in IE and halts. There is no sign in VS that the project is running. It enables the RUN button again even though the site is opened in IE. Hence, my breakpoints are also not working. This behaviour started happening suddenly.. Any reasons why it happens and resolutions? ...

Solution organisation for product

We have a base product that has bespoke development for each client that extends and overwrites the functionality of the base. We also have a custom framework that the base product and sits on top of. We use inherited forms to override the base functionality and to date all the forms and classes have been lumped in the same projects ...

Where can I find the schema (XSD) for a .csproj file?

Where can I find the W3C XML Schema (XSD) for a .csproj file, for Visual Studio 2008? It seems like this should be obvious, but I spent some time and haven't found one. I looked in %VS2008%\xml\Schemas, no joy. no joy searching the 'tubes either. ...

Visual Studio (C++) IntelliSense with parentheses

If I have a vector toto, when I write toto.s , IntelliSense gives me toto.size but I would like toto.size(). How to force IntelliSense to give me parentheses? ...

Using the VS Web Test Classes outside Visual Studio

I use HttpWebRequests pretty extensively - I've found that the Visual Studio Web Test classes (i.e. WebTestRequest and WebTestResponse etc) offer a lot of really nice methods that i'd love to start using. But I can't seem to find a way to use these classes outside of the Visual Studio's testing framework. Has anyone done this? ...

DEBUG ERROR : Runtime needed for <name.exe> occurs while cusing COM in vc++ project?

I have created a COM component for my work. I have registered the component also. On my system I have two VM workstations. In my first workstation it works fine. In my second workstation it displays an error box containing the message this program needs a rumtime and closes an unusual way please contact applications administrator. I ...

Visual Studio 2008 SignTool.exe not found

I can't publish in 2008, I was previously using 2005 and it published just fine. Error 2 An error occurred while signing: SignTool.exe not found. I know there are tons of hits for a search on signtool.exe on google. The ones I've found involve copying the file to X,Y,Z locations and ensuring signtool matches up with your VS command p...

SQL server management from visual studio

I need to make some permission changes on a MS SQL server (2005) database. Some tables read only for all but dbo, some tables read-write for all etc. In the past I used the management program that came on the SQL server disk. That is not an option for me right now. I cannot find a place in visual studio to alter table permissions. D...

How can I programmatically obtain the version of Visual Studio my application was built with?

How can I programmatically (C#) obtain the version of Visual Studio my application was built with? ...

abs function in C

Hi people! I wrote some code in C (not in C++): Mask1 = abs(Area1 * 2 + Area2 * -2); Area1, Area2 and Mask1 are three double variables. (e.g. 3.00556, 34.3333) My problem is that abs returns an integer value (e.g 30). What I need to do to fix it? Regards. ...

Width of PowerShell Output in the Visual Studio Output Window

I have a powershell script that runs fxcopcmd in the output window. Turns out that when I output results it limits the output to 80 Chars, is there a way to get it to be wider in the visual studio output window ...

Visual Studio - Command to collapse all sections of code?

In Visual Studio (2008) there a command to collapse/expand all the sections of code in a file? ...