Questions tagged [visual-studio-2010]
Visual Studio 2010 is an integrated development environment (IDE) from Microsoft. Use this tag only for questions arising from the use of this particular version of Visual Studio, and not about any code just written in it.
visual-studio-2010
6,064
questions
79
votes
5
answers
25k
views
VS2010 does not show unhandled exception message in a WinForms Application on a 64-bit version of Windows
When I create a new project, I get a strange behavior for unhandled exceptions. This is how I can reproduce the problem:
1) create a new Windows Forms Application (C#, .NET Framework 4, VS2010)
2) ...
1188
votes
7
answers
700k
views
push_back vs emplace_back
I'm a bit confused regarding the difference between push_back and emplace_back.
void emplace_back(Type&& _Val);
void push_back(const Type& _Val);
void push_back(Type&& _Val);
As ...
1672
votes
7
answers
164k
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[...
531
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 ...
312
votes
9
answers
63k
views
Is std::unique_ptr<T> required to know the full definition of T?
I have some code in a header that looks like this:
#include <memory>
class Thing;
class MyClass
{
std::unique_ptr< Thing > my_thing;
};
If I include this header in a cpp that does ...
565
votes
5
answers
539k
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 ...
37
votes
3
answers
68k
views
Setup OpenCV-2.3 for Visual Studio 2010
I'm trying to use opencv 2.3 with Visual Studio 2010 Express. My code is from example:
#include "stdafx.h"
#include <highgui.h>
int _tmain(int argc, _TCHAR* argv[])
{
int c;
// ...
119
votes
8
answers
386k
views
Filtering DataGridView without changing datasource
I'm developing user control in C# Visual Studio 2010 - a kind of "quick find" textbox for filtering datagridview. It should work for 3 types of datagridview datasources: DataTable, DataBinding and ...
380
votes
13
answers
278k
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?
540
votes
25
answers
824k
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 ...
100
votes
3
answers
20k
views
Trap representation
What is a "trap representation" in C (some examples might help)? Does this apply to C++?
Given this code...
float f=3.5;
int *pi = (int*)&f;
... and assuming that sizeof(int) == sizeof(float), ...
204
votes
13
answers
116k
views
UTF-8 without BOM
I have javascript files that I need them to be saved in UTF-8 (without BOM), every time I convert them to the correct format in Notepad++, they are reverted back to UTF-8 with BOM when I open them in ...
263
votes
49
answers
273k
views
Unable to load DLL 'SQLite.Interop.dll'
Periodically I am getting the following exception:
Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I am using 1.0.82.0. version,...
254
votes
10
answers
159k
views
IIS Express Windows Authentication
I'm trying to use IIS Express with VS2010 to host a silverlight application. I modified my applicationhost.config file to allow for modification of the proper configuration settings. I have the ...
130
votes
7
answers
72k
views
How do you include additional files using VS2010 web deployment packages?
I am testing out using the new web packaging functionality in visual studio 2010 and came across a situation where I use a pre-build event to copy required .dll's into my bin folder that my app relies ...