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...
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?
...
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?
...
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...
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.
...
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...
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.
...
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?
...
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...
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...
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,...
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 ...
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...
Is there a simple way to insert layers (a feature of Visual Studio 2005) in Visual Studio 2008?
...
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.
...
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?
...
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.
...
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...
...
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++?
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...