visual-studio

Compile error using cl.exe (Visual Studio 2008) for this cpp code

I'm getting compile error in this code #include<iostream> #include<cstdio> #include<string> using namespace std; void main(int argc,char *argv[]) { int i; for(i = 0;i<10;i++) fprintf(cout,"%d\n",i); fprintf(cout,"abc:\n"); string s; cin>>s; if(s == "resum...

Format source code on save in Visual Studio 2005

I would like Visual Studio to format my source code every time I save. I can do this in Eclipse. Can it be done in Visual Studio 2005? ...

When publishing an ASP.NET application, should I change the build type to Release in the Visual Studio Configuration Manager?

For my production sites I usually change the "debug" flag in the Web.Config to "false". But I always publish my sites with the Configuration Manager set to "Debug". Should I change this setting too? ...

Windows Server (2003/2008) as a Development Machine?

I was wondering how many people here use Windows Server 2008 (or w2k3) as their development machine. If you do, what are the pros/cons that you've found? If you don't, do you see any advantages to doing so? I've read many anecdotes online stating that it was a more stable development environment than Vista SP1, and some setup tips her...

Disabling StyleCop rules

I'm using StyleCop. But there a couple of rules I want to ignore, for instance using this. in front of class members. How do I turn off a StyleCop rule. I've looked but can't find how to do it. ...

Is there a method to swap the left and right hand sides of a set of expressions in Visual Studio?

I have a decent sized set of data that needs to be stored in an active record. In order to prepopulate the form fields on the page, I have already written the following code: Device device = new Device(DeviceID); // device is simply the active record txtDeviceName.Text = device.Name; txtNotes.Text = device.Notes; txtHostName.Text = dev...

Visual Studio warning level meanings?

On the build tab in a Web Application project I have a setting called "Warning Level". I can set a value from 0 to 4. What do these values mean? Will a value of 0 be more strict and generate more warnings, or vice versa? I haven't been able to find any documentation on it yet, but perhaps I'm looking in the wrong place. ...

Visual Studio projects with multiple folders

Is there an easy way to use multiple folders in a project with Visual Studio? It has "filters" which look like folders, but it would be really nice to be able to make folders and insert files in them inside VS. Is there an add-in or secret option to enable this behavior? ...

Test view keeps dissapearing in visual studio

I have visual studio 2008 TS both on my laptop as on my desktops(work & home). For some reason the one on my laptop keeps removing the test view window from my window lay-out. I can put it back by going Test=>windows=>test view, but as soon as my test run ends, the window is gona again. Quite anoying since I can't see the test results th...

VS2008 setup project installing extra dependency files

In VS2008 I have a setup project which installs the Primary Output of one app to the application folder, and the Primary Output of class library project into a subfolder of the application directory. Both projects reference several third-party assemblies (some DevExpress UI controls). When I install the application, the subfolder is su...

Are there any reasons why a C# developer should learn Emacs/VIM?

I work as a c# developer in a purely Microsoft shop. I recently started teaching myself assembly using gas and Linux in my free time away from work. I like messing about with Linux, I'm still very new to it though. I keep hearing I should learn VIM or Emacs but the thing is, there is absolutely no way I'll need to use them in work,...

Two files containing definition of main() Visual Studio ?

I have created a project in Visual Studio 2008 Professional Edition. This project contains one .cpp file for each assignment like this... [-]Source Files \ |-- 233.cpp |-- test.cpp And each file contains definition of main(). Action:CTRL+F5 Error 1 error LNK2005: _main already defined in 233.obj test.obj Error 2 fatal ...

How to get around "Binary was not built with debug information"?

I'm trying to debug a C DLL that I'm using with a Delphi program. I built the DLL with Visual C++, with debug information enabled. I built the Delphi program with Delphi 2009, with debug information enabled. But apparently they use different formats, because when I try to attach the VC++ debugger to my program, it says "binary was not...

Insert layers on Visual Studio 2008

Is there a simple way to insert layers (a feature of Visual Studio 2005) in Visual Studio 2008? ...

ASP.NET common controls source code

Is there a source code readily available for commonly used controls (say found in the toolbox) for ASP.NET 2.0? The level of detail that I want its that I need to know the internal workings of the control. ...

VBox (from Flex) in ASP.NET

I had worked in the IDE of Adobe Flex Builder for quite a while. Is there a simple equivalent to VBox (Flex) in ASP.NET? ...

Drap and Drop in Eclipse for Web Projects

Is there an equivalent drag and drop style for Eclipse (or any IDE in Java) for J2EE or JSP that is similar to the IDE feel of ASP.NET in Visual Studio? ASP.NET allows you to drag and drop controls to a web form or web page. ...

How to do effective refactoring using VS Studio 2005/2008

I am looking for experience/tools to improve refactoring techniques using VS Studio 2005/2008. Currently I only use standard refactor menu choices: Rename... Extract Method... Encapsulate Field... ...

HELP VS8 Command line to IDE?

PROBLEM: C:\>**cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /link/out:hello.dll** 'cl' is not recognized as an internal or external command, operable program or batch file. I am using Visual Studio Prof Edi 2008. What PATH should I set for this command to work? How to execute above command us...

How do I convert between big-endian and little-endian values in C++?

How do I convert between big-endian and little-endian values in C++? I'm using VC++ 6.0.when I used _byteswap_ulong() function it requires the header file intrin.h. When I include the header it reports an error saying incompatible compiler and that intrin.h is for the gcc compiler. So is there any other functions to convert between big-e...