46,387 questions
1685
votes
7
answers
167k
views
Why does changing 0.1f to 0 slow down performance by 10x?
Why does this bit of code,
const float x[16] = { 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8,
1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6};
const float z[...
782
votes
13
answers
978k
views
Writing to output window of Visual Studio
I am trying to write a message to the output window for debugging purposes. I searched for a function like Java's system.out.println(""). I tried Debug.Write, Console.Write, and Trace.Write. It does ...
737
votes
10
answers
440k
views
Interop type cannot be embedded
I am creating a web application on the .NET 4.0 framework (beta2) in C#.
When I try to use a assembly called "ActiveHomeScriptLib", I get the following error:
Interop type
'ActiveHomeScriptLib....
589
votes
21
answers
413k
views
How do I run Visual Studio as an administrator by default?
I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator.
Is ...
572
votes
4
answers
556k
views
What is "stdafx.h" used for in Visual Studio?
A file named stdafx.h is automatically generated when I start a project in Visual Studio 2010. I need to make a cross-platform C++ library, so I don't/can't use this header file.
What is stdafx.h ...
545
votes
57
answers
451k
views
The name 'InitializeComponent' does not exist in the current context
If I create a new project in Visual Studio 2010 SP1 and select "WPF Application" and tries to build the generated application, I get the error
The name 'InitializeComponent' does not exist in the ...
543
votes
14
answers
885k
views
Is there a format code shortcut for Visual Studio?
In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Studio 2010?
540
votes
25
answers
827k
views
Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview
I've installed Visual Studio 2012 Release Preview, and it appears to be fine, but now when I try to use Visual Studio 2010 to compile C++ projects, I get the following error message:
LINK : fatal ...
533
votes
16
answers
1.1m
views
The type or namespace name could not be found [duplicate]
I have a C# solution with several projects in Visual Studio 2010.
One is a test project (I'll call it "PrjTest"), the other is a Windows Forms Application project (I'll call it "PrjForm"). There is ...
451
votes
26
answers
366k
views
This project references NuGet package(s) that are missing on this computer
I have an ASP.NET MVC5 application that worked yesterday and now I am getting this error when I try to build:
This project references NuGet package(s) that are missing on this computer.
I have the ...
417
votes
27
answers
260k
views
Cannot import the keyfile 'blah.pfx' - error 'The keyfile may be password protected'
We just upgraded our Visual Studio 2008 projects to Visual Studio 2010. All of our assemblies were strong signed using a Verisign code signing certificate. Since the upgrade we continuously get the ...
386
votes
4
answers
170k
views
Running two projects at once in Visual Studio
I created a solution in Visual C# 2010 Express that contains two projects: one is the client, the other is the server. I would like to debug both at the same time, but I can only seem to run one of ...
379
votes
13
answers
280k
views
How to use Boost in Visual Studio 2010
What is a good step by step explanation on how to use the Boost library in an empty project in Visual Studio?
370
votes
17
answers
679k
views
Type or namespace name does not exist [closed]
I have a WCF Data Service project built with Visual Studio 2010, which was working fine. All of a sudden, it didn't compile anymore. It was giving me messages like:
Error 7 The type or namespace ...
346
votes
11
answers
188k
views
Visual Studio: How to show Overloads in IntelliSense?
Once code has been written, the only way I know of to view the overloads for a method is to actually edit the method by deleting the Parenthesis () and reopening them.
Is there a shortcut key that I ...