A lot of the times, when I examine code, I like to use intellisense to kind of get a feel for the structure. It's a quick way to know what variables exist and which are in context etc.
However, in Visual Studio 2008, this always results in a check out of TFS. Is it possible to change it so that TFS has to expicitly ask me if I want to c...
Hi,
I have following code
class Test
{
public:
int &ref;
int a;
Test(int &x)
:ref(x)
{
cout<<"Address of reference "<<&ref<<endl;
cout<<"&a : "<<&a<<endl;
cout<<"this = "<<this<<endl;
}
};
int main()
{
Test *pObj = NULL;
{
int i = 10;
cout<<"Address of refer...
Why is the 'Open list in Microsoft Excel' button disabled on my Code Metrics Results window and how do I enable it?
I have Office 2007 (and Excel 2007) installed in my Windows XP sp3, and I use VSTS 2008 Team Suite.
...
I have Office 2007 (and Excel 2007) installed in my Windows XP sp3, and I use VSTS 2008 Team Suite.
I execute option Code Metrics about a csproj in my solution, and I get the error: An error ocurred while calculating Code Metrics
How can I debug it ?? what happened ?
...
Hi,
I have below code, running on 32-bit windows, visual-studio.
template <class T>
class Test
{
public:
T &ref;
Test(T &x)
:ref(x)
{}
};
int main()
{
cout<<"sizeof Test<int> : "<<sizeof(Test<int>)<<endl;
cout<<"sizeof Test<double> : "<<sizeof(Test<double>)<<endl;
cout<<"sizeof Test<char> : "<<sizeof(Test<char>)<<endl;
}
Ou...
is there a quick way to tell the number of methods in an interface/class in VS2008?
using Resharper?
Using NDepend?
...
Ok, I'm in a world of pain at the moment.
We'd been developing with VS2008 (VB.NET, mostly WinForms, also ASP.NET and Windows services) on Win7 x64, with specific requirements (that we can't get rid of yet), to target x86 and framework 3.5.
We recently upgraded to VS2010, and quite soon, fell foul of this ResGen.exe incompatibility iss...
When i write a classes constructor typing : to start the initialization list of a C++ constructor Visual Studio indents the line when it is right after a namespace directive. Also when i type :: (scope resolution) Visual Studio indents the line, which i found very annoying since the indentation was correct in the first place and i always...
Hi,
In my project settings is turned on the XML Documentation file checkbox. In this case every public method, fiels or enum without XML Declaration is underline with green wave. And I have a warning in the error window.
The Question is the next: Does Visual Studio has specific define or region to skip some method or smth else from XM...
my debugging in visual studio 2008 has stopped working , the debugger doesn't hit any breakpoint . what should i do?
...
Hi guys,
I am trying to add a java-based web service reference to my .NET project using a WSDL generated by it, but every time I have added it, I cannot find it from the code, let alone invoke its one webmethod.
I can add it alright, and it shows up in my project tree, but I cannot see the methods and I cannot find or access the webs...
hi
i try to make package and i got this error:
Unrecoverable build error
i work on Visual-studio 2008 in C#
thank's in advance
...
I need to put forward some strong arguments to the management to upgrade our projects from vs 2008 to vs 2010.
However, I would like to know the downsides as well so that I can be well prepared.
Please help me with as many high-level points as possible.
...
I have ReSharper 5.0 for C# running on VS 2008 SP1. Most key combinations like (Ctrl+R, Ctrl+R) for renaming an identifier or (Ctrl+Shift+T) for going to a file work.
I thought I would try some of the other refactorings like adding a parameter to a method, but I get the following error, when I put the cursor over a private method.
...
Hi!
I can't seem to find any walk-trough on how to create a MFC DLL using Visual Studio 2008. My problem is the following. I need to use wininet.h with my DLL and my solution to that was to use MFC DLL. Anyhow trying to link my project gives me 5 Link errors
I believe that the error is of a kind that I need to add Additional Library Dire...
Hello all,
I am running Visual Studio 2008. I cannot get the auto format to work on the source code of my aspx page. I have tried it from the edit menu and the ctrl K, D. Nothing works. If I manually fix everything, the next time I open the file the formatting is gone. Here is a sample of what it looks like:
<cc1:TabContainer ID=...
A co-worker posted this on an MS forum but was not able to get an answer.
He's using Win7, VS 2008 (C++) pro - not the express version.
When he selects Tools->Attach to Process the dlg box with the dropdown for "Transport" shows only "default" and the Qualifier field is greyed out and only shows his machine name.
He wants to debug...
Project1: A C++ EXE project with code
generation option "runtime library" set to
"Multithreaded Debug Dll".
Project2: A C# EXE project developed
with .Net Version, say, 3.5
Suppose I want to write an installer project for these projects. I naturally include their primary outputs (the exe's) in the installation package. But the exe's a...
Hi,
From link http://www.coolinterview.com/interview/10842/
Is there any way to write a class such that no class can be inherited from it ?
From suggestions in the above link, i tried below code
class A
{
A(){}
~A(){}
A(const A&);
A& operator=(const A&);
};
class B: public A
{
};
The above code doesn't produce any e...
Dear
Hope my question is clear.
I wish to develop a Internet monitoring system for my office using VB 2008. What i need to get is when a user tries to access internet via any webbrowser, the application we are developing should store that address to a database.
Since this is on a network based project, i would like to know the domain ...