visual-studio-2008

Enforce custom stylecop rules for a checkin policy on TFS

Hi, I have installed StyleCop CheckIn policy (from here) and it works great. However I have written some custom rules which I want to be enforced as part of the CheckIn policy (Visual Studio 2008, Team Explorer 2008, TFS 2005). The custom rules appear fine in the settings file when I right click on a project and click "StyleCop Setti...

What is the keyboard shortcut to collapse current region in VS2008?

By "current region" I mean a region where the cursor is. EDIT: I am looking for region toggling, not outlining expansion toggling. By "region" I mean section of code defined by #region and #endregion directives. Ctrl+M, Ctrl+M toggles closest outlining (which for most cases would be current method not region). ...

How to apply C# keyboard mapping scheme in VB 2008 Express Ed.?

Hi all, I´m used to developt in C#, but these days I´m using Visual Basic 2008 Express Edition, and I´d like to apply the C# keyboard mapping scheme in this environment. When I go to the options window, the only mapping scheme that I can list is 'default', that means, the VB keyboard mapping :( I don´t want to change al my shorcuts on...

Is there any reason to switch to Visual Studio 2010 for Windows Forms development?

I can't find any new features or improvements for Windows Forms in Visual Studio 2010. Am I missing something? I guess there are new features to C# and other parts of .NET in general. Any reason specifically to the GUI development portion? ...

constant variables not working in header

if I define my constant varibles in my header like this... extern const double PI = 3.1415926535; extern const double PI_under_180 = 180.0f / PI; extern const double PI_over_180 = PI/180.0f; I get the following error 1>MyDirectX.obj : error LNK2005: "double const PI" (?PI@@3NB) already defined in main.obj 1>MyDirectX.obj : error LNK2...

Compiling for x64 on x86 System in VS08, no binaries are created

I've got a C++ (Native) DLL that I'm trying to compile for x64 on my x86 system, which should work fine, but the actual binaries are not being created. The build process runs and VS says that everything was successful, but when I go into .\x64\Release\ the only file that is there is test.dll.intermediate.manifest, which is just a bunch ...

MySQL, C++: Need Blob size to read blob data

How do I get the size of data in a BLOB field in the Result Set? (Using C++ and MySQL Connector C++) In order to read the data from the result set, I have allocate memory for it first. In order to allocate memory, I need to know the size of the blob data in the result set. Searching the web and StackOverflow, I have found two method...

Visual studio text editor "members" dropdown icons for auto implemented C# properties?

Is there any way (perhaps via add-in) that anyone knows to easily list or visualize the fields (and auto-properties) of a class in Visual Studio 2008 SP1 (standalone or with ReSharper 4.5)? I have been used to seeing fields of a class identified by the blue box/diamond icon in the Members dropdown in the Navigation bar of C# code tex...

How do I resolve ambiguity between my project DLL and a DLL in the GAC?

I am currently working on another issue in my ASP.NET MVC project. In an effort to better understand what is happening in the codebase I decided to reference the ASP.NET MVC Source Code project in my own project by adding the solution file to my references. When I did this, I started getting HTTP 404 errors. It just so happens I had...

Basic class naming and visibility questions

I always see people giving me code (I mean code examples for questions on SO and the like) like: class MyData{ ObservableCollection<Color> Colors; ObservableCollection<Fruit> Fruits; ObservableCollection<Pairs> Pairs; public void MatchCurrentSelection(){ ..... etc } } }...

Sorting List vs. ObservableCollection

I have found out that I am "doing WPF wrong" and frustratingly must overhaul alot of my code. How could I convert the following: public static class SortName { public static int Compare(Person a, Person b) { return a.Name.CompareTo(b.Name); } } and I call it like: list.Sort(SortName.Comp...

C ReadProcessMemory - how to examine the memory area associated with a process

Hi, I wans to read all of the memory associated with a particular process. I am aware of ReadProcessMemory, but as I have little experience of using it and I am fearful that I will just get a load of rubbish out (rubbish in...). a) how do I work out, from the base pointer to the end) the total region that I can read b) what is the bes...

Is it possible to use Visual Studio 2008 Express Edition to write an Excel Plugin?

I have this question because I am not familiar latest generation of MS VS product. But for work reason I may need to develop an Excel plugin for Excel 2003. I would like to study what are the alternative (other than using VBA) I have a VS C++ 2008 Exp Edition installed. From the available project types, I don't think I can create a xl...

How to create MSI package for SSRS solution in VS2008

Hi All, I created the Reports in SSRS and i deployed in my local Report Server. Now one of my client wants that solution in their server(Development) in a Package. But i have no idea how to create MSI package for SSRS.... So please help me, i want to deliver that Package please Thanks in Advance Vinay K ...

Are Active X for asp.net outdated? What other options do I have?

I have a ASP.NET website. On one of my webforms/page (.aspx), I need to retrieve a value via HttpWebRequest. Due to high traffic and tying up ASP.NET's resources, I do not want to run this on my web server. I would like to create a WinForms/Active X program that can retrieve this value (retrieved value from HttpWebRequest) and place i...

Visual Studio 2008 TFS Shelve/Unshelve changes stopped working and hangs VS

Greetings. This is second time I've actually spotted this problem with VS 2008 TS with TFS addon installed on top. The problem is that at some point, when you actively work with Shelve/Unshelve changes from TFS, the Shelve changes window (when you hit "Shelve" button) hangs and hangs whole VS. After that, if you restart studio, the Sh...

Why is NUnit hanging from the command line, but not under TestDriven.NET?

If I start my unit tests from TestDriven.NET under VS2008, they run pretty much immediately. If I start my unit tests using nunit-console.exe, the NUnit console hangs for five minutes before actually running my tests. If I attach a debugger, it seems to be spending its time in System.IO.MemoryStream.Read, called from System.Runtime.Ser...

Build static Library Using Visual C++ 2008, and Use it under Visual C++ 6

I was wondering any of you has successfully done that before? If yes, is anything I need to pay attention to? ...

C++/CLI, Winforms: New form under sub-folder in VS2008

When I create a new form under a sub-folder in VS2008 in a C++/CLI Winforms project, the .h and .cpp are correctly created under the sub-folder. However, when the form is opened in the designer and the title is changed, I get an error message saying that the .resx (AWOL till this particular moment) is already part of the project. One can...

How to bind a target within MSBuild to a general error.

We are using TFS build and we have a couple of custom steps within the configuration (e.g. running NUnit tests in AfterCompile target, deployment steps in AfterDropBuild target etc.). Now I wanted to add the functionality of sending emails on broken builds. I have configured a mail task from MS Community tasks and put it to the BeforeOnB...