visual-studio

Comparing developer productivity tools

I am getting ready to test developer productivity tools for our team (Coderush, Resharper, JustCode, etc). We're planning to roll the tool out the same time as we deploy Visual Studio 2010 and TFS. I've seen several posts discussing the merits of one tool versus another. However, I haven't been able to find any discussion of a method...

C# Simple Event Handler for Setting Alarm

Why does the following line "alarm.AlarmEvent += new AlarmEventHandler(alarm_Sound);" gives me "An object reference is required for the non-static field, method, or property 'AlarmClock.Alarm.alarm_Sound(object, System.EventArgs)'" public static void Main(string[] args) { Alarm alarm = new Alarm(new DateTime(2010, 4, 7, 2...

Dynamics AX 2009 Visual Studio Template Files

Where online can I download the Visual Studio template files for Microsoft Dynamics AX 2009? ...

penalty for "inlined" classes

Hi All Visual studio allow you to create "inlined" classes (if I am not mistaken with the name). So class header and implementation all in one file. H. file contain definitions and declarations of the class and functions, there is no .cpp file at all. So I was wondering if there is any penalty for doing it that way? any disadvantages...

Importing a DllMain winapi .dll into Visual Studio project C++

I have the .def file, .lib file, the .dll, the source files. It's using WINAPI DllMain, all its functions follow that. It's like this: BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } extern "C" { int WINAPI DoSomething()...

VS2005 and VSS. Should .exes, .dlls, pdbs, .resource and generated .xml files go in VSS?

It seems like the following type of files need to be writable to be able to compile a solution. .exe .dll .pdb (if debugging) .resource (?) .xml (at least the system generated ones. I'm not sure if they are just all XML documentationf iles) If they were checked in and could only be overwritten by the compiler by the person who had the...

How to compile x64 asp.net website?

I'm trying to compile (using Visual Studio) an ASP.Net website with the Chilkat library. The compilation fails due to this error: Could not load file or assembly 'ChilkatDotNet2, Version=9.0.8.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. An attempt was made to load a program with an incor...

Can AnkhSVN be installed on an Express edition of Visual Studio?

Can AnkhSVN be installed on an Express edition of Visual Studio? ...

OData with Visual Studio 2005 and .NET 2.0

Is it possible to use OData with Visual Studio 2005 and .NET framework 2.0 ? ...

Can I set LARGEADDRESSAWARE from within Visual Studio?

I have a .net assembly that needs to be 32-Bit and needs to be /LARGEADDRESSAWARE. I know how to do this with EditBin, but I wonder if there is a built-in way in Visual Studio 2010? Or alternatively, did someone write an MSBuild Task for this? Edit: This is for a C# app, so no linker options sadly :( ...

Can I define a variable in Visual Studio debugger?

Hi, guys. I am wondering if I could define a variable during debugging in visual studio. For instance, I want to know how many times the breakpoint was hit when some flag was true. This rquirement seems need more advanced programmable skill to visual studio debugger. Visual studio conditional breakpoint can only satisfy partial requirem...

Sql's query analyzer for visual studio

Hi, I do a lot of mistakes in sql query in visual studio 2008. is there any addin, which can analyze my query? ...

What's the cheapest way to upgrade from standard VS2008 to VS2010?

What's the cheapest way to upgrade from standard VS2008 to VS2010? I looked on the web and it looked like they wanted a monkey for it (£500). This seems steep for an individual wanting to upgrade using taxed money. ...

Eclipse editor rightside-bar in visual studio

Hi! When programming in Eclipse I use small vertical bar on the right side of the editor. When I get errors, they are displayed as red boxes there so I can see if file contains errors and quickly jump to that place. Also warnings and other stuff is displayed there. Question: is there something similar for Visual Studio (2008)? It sounds...

Can you change VS Win Forms designer code generation?

We implemented new coding standards, which call for our private members to have a leading underscore. Like so: private System.Windows.Forms.Label _label; Unfortunately VS will put out the default below when you drag a new label onto your form: private System.Windows.Forms.Label label1; Is there a way to change the default to: pri...

Visual Studio: How to setup Qt for a project that contains both 32-bit and 64-bit platforms?

I was wondering if anyone has experience with maintaining a Qt application on Visual Studio (2008+) that has both Win32 (32-bit) and x64 (64-bit) platforms? The default Qt project comes with only the 32-bit library. While I know how to build Qt as 64-bit, how do you setup Visual Studio, Qt, etc such that you can easily switch between th...

Changing Visual Studio's default build output path

Are there any good reasons to modify your projects build output path from its default of "bin\debug"? Is there any benefit to pointing all your projects within a solution to a common build output location? ...

How do you debug a windows service that is being installed?

I know how to attach a debugger to a windows service, but I can't seem to get attached to one that's being installed and started by a windows installer. I've tried: Setting a Thread.Sleep(TimeSpan.FromSeconds(30)); at the beginning of the on-start, but when I try to attach in Visual Studio, the name of the service does not appear as an...

.NET Application using a native DLL (build management)

I have a .NET app that is dependent on a native DLL. I have the .NET app set as AnyCPU. In the post-build step, I plan to copy the correct native DLL from some directory (x86 or AMD64) and place it in the target path. However, this doesn't work. On a 64-bit machine, the environment variable PROCESSOR_ARCHITECTURE is "x86" in Visual Stu...

When does Visual Studio call target AfterBuild & BeforeBuild? And how is it handled when these targets are not defined?

Hi Fiburt, Today I meet a similar problem and it reminds me about this thread. In Visual Studio, if we open the .csproj file, we see that they tell us to uncomment the two targets AfterBuild and BeforeBuild so as to execute them after and before the build of the current project accordingly. My questions are: Where are these two targets...