visual-c++-2010 Questions
3
Solved
Today I fired up Visual Studio 2010 (Visual C++) and started working on a project. The solution contains two projects. One is a static library I am writing, the other is a test application containi...
Specht asked 4/9, 2010 at 21:42
4
How can I do that ? Can I work in VS2010 IDE but have it compile with the VS C++ 6.0 compiler?
And can I work in VS2010 IDE and have it compile by using the the VS2008 compiler ?
Almaraz asked 13/7, 2010 at 13:38
5
Can I use Visual C++ 2010 Express compiler for commercial use?
As far as I know, it was always permitted prior to 2010 version, but now when I start IDE, it writes "For Evaluation Purposes Only". I...
Abaca asked 12/4, 2010 at 18:59
1
Solved
I've got error C2078 in VC2010 when compiling the code below.
struct A
{
int foo;
double bar;
};
std::array<A, 2> a1 =
// error C2078: too many initializers
{
{0, 0.1},
{2, 3.4}
}...
Santamaria asked 31/7, 2012 at 7:6
1
Solved
On Visual Studio 2010 under Windows 7, 32bit, unsigned long seems to be a distinct type from both uint32_t and uint64_t. See the following test program:
#include <stdint.h>
#include <stdi...
Abutilon asked 23/7, 2012 at 11:18
2
i have successfully compile and build c/c++ project on visual c++ 6.0 to dll .But when i convert to visual c++ 2010 on windwos 7 64bit os it appear many error .source code is
typedef struct {
in...
Sandell asked 9/5, 2012 at 6:49
1
Solved
I have setup buildbot to compile my Qt/C++ application with the /analyze flag.
However the analysis is also delving into the qt headers which I don't care about:
c:\qt\qt-everywhere-opensource-sr...
Blather asked 17/4, 2012 at 12:43
1
Solved
After doing some experimentation with move semantics with an array type I created, I am wondering why Microsoft's C++ compiler calls the move constructor when returning from a method by value whils...
Cockalorum asked 26/3, 2012 at 1:42
4
Solved
I'm confused about getting Qt working with Visual Studio Express. Most of the searches online have turned up instructions for compiling Qt using instructions such as:
Install MSVC2005 or MSVC2...
Bosk asked 24/2, 2011 at 0:0
1
Solved
Using Visual Studio 2010 SP1:
#include <vector>
//namespace XXX {
struct Test
{
bool operator==(const Test& r) const { return true; }
};
//}
//typedef XXX::Test Test;
template <...
Maddiemadding asked 15/3, 2012 at 21:47
1
Solved
I wanted to know how to use the template for an Empty Visual C++ project to programmatically create a new solution with this empty project. The code (C#) I have right now is:
string VSProgID = "Vi...
Outgo asked 17/2, 2012 at 18:16
1
Solved
(Using Visual Studio 2010) I'm trying to create a shared_ptr of an existing class in my project (class was written a decade before std::shared_ptr existed). This class takes a non-const pointer to ...
Lomax asked 9/1, 2012 at 14:5
2
Solved
I am a .NET guy who is having to do some work on an MFC app. The app is a VS2008 MFC executable which I have converted to VS2010. The original developers did localisation by specifying the name of ...
Lundy asked 5/1, 2012 at 3:40
3
Solved
While working on my own type erasure iterator, I ran into an issue where the compiler (MSVC10) crashed with a stack overflow on this code:
struct base {}; //In actual code, this is a template stru...
Bone asked 13/12, 2011 at 20:53
2
Solved
I encountered a very strange symptom. Who can tell me what the root cause is?
My VC++ compiler version is latest: "Microsoft Visual C++ 2010 : 01019-532-2002102-70860"
Steps to reproduce:
Creat...
Shavers asked 27/11, 2010 at 5:54
1
Solved
I have some troubles with the application of polymorphism in this example. This question is similar to my last question
C++, virtual inheritance, strange abstract class + clone problem
There are ...
Procyon asked 3/8, 2011 at 20:44
2
Solved
In Visual C++ (2008 and 2010), the following code does not compile with the following error:
#include <memory>
void Foo( std::shared_ptr< int > test = ::std::make_shared< int >(...
Lenticel asked 7/5, 2010 at 13:14
3
Solved
Using C++0x, how do I capture a variable when I have a lambda within a lambda? For example:
std::vector<int> c1;
int v = 10; <--- I want to capture this variable
std::for_each(
c1.begin...
Alcorn asked 23/5, 2010 at 12:23
2
Solved
I am able to use a FileSaveDialog (Common Item Dialog) in a VC++ 2010 app like this:
IFileDialog *pFileDialog;
HRESULT hr = CoCreateInstance(CLSID_FileSaveDialog, NULL, CLSCTX_INPROC_SERVER, IID_P...
Tableware asked 17/3, 2011 at 23:19
2
Solved
I got a program that whenever I minimize it, it goes to the system tray.
i want to know is this:
a) how could i detect a key press while my program is in the system tray.
b) how could I know what ...
Mehalek asked 17/2, 2011 at 3:43
2
Solved
I have declared an array as follows:
int *arr;
Is there any way in visual studio to watch all the elements of the array while debugging, rather than having to manually place watch for an e...
Borne asked 4/2, 2011 at 21:51
2
Solved
Does C++0x mode in VC++ 2010 has an off switch? I am working on a project that supposed to compile on non 0x compilers, and therefore I want to compile against the current standard. (Even if non of...
Efta asked 21/8, 2010 at 2:36
2
Solved
With g++ with -g option, I can use gdb for debugging purposes.
What's the equivalent to this option with Visual Studio 2010 cl.exe compiler?
This page has different libraries (debug/release) for ...
Srinagar asked 11/1, 2011 at 16:11
2
Solved
If copy constructor is made private then in
Case 1: No error, the compiler doesn't care if the copy constructor was defined in class.
Case 2: Error, copy constructor is private and when it is mad...
Farfamed asked 9/1, 2011 at 14:7
2
Solved
Can I get the string with regular expression from std::regex? Or should I save it somewhere else if I want to use it later?
In boost you can do this:
boost::regex reg("pattern");
string p = reg.s...
Levin asked 21/12, 2010 at 15:33
© 2022 - 2024 — McMap. All rights reserved.